UNPKG
latvian-grammar
Version:
latest (1.2.0)
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
Latvian grammar library
github.com/slikts/latvian-grammar
slikts/latvian-grammar
latvian-grammar
/
src
/
countSyllables.spec.js
9 lines
(7 loc)
•
247 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
countSyllables from
"./countSyllables"
; it(
"counts"
, () => {
expect
(countSyllables(
"ābele"
)).toBe(
3
);
expect
(countSyllables(
"tu"
)).toBe(
1
);
expect
(countSyllables(
"ap"
)).toBe(
1
);
expect
(countSyllables(
"astroloģija"
)).toBe(
5
); });