Skip to content

Commit

Permalink
test(wasm): Add tests for WASM module
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 15, 2024
1 parent e7b3602 commit 8643c96
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/wasm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { titlecase, uppercase, lowercase, InputLocale, StyleGuide } from '../pkg';

var input = "ILIK SU VE İTEN RÜZGARLAR"
var output = titlecase(input, InputLocale.TR)
console.log(output)

var input = "title with a twist: a colon"
var output = titlecase(input, InputLocale.EN, StyleGuide.DaringFireball)
console.log(output)

0 comments on commit 8643c96

Please sign in to comment.