Skip to content

Commit 298f02b

Browse files
committed
Gender 2.1.0
1 parent 225ba7c commit 298f02b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import gender from './index.js';
21
import test from 'ava';
2+
import gender from './index.js';
33

44
test('gender return type to be string', t => {
5-
t.is(typeof gender(), 'string');
5+
t.is(typeof gender(), 'string');
66
});
77

88
test('gender with locale and extra return type to be string', t => {
9-
t.is(typeof gender({locale: 'ru_RU', extra: ['gender']}), 'string');
9+
t.is(typeof gender({locale: 'ru_RU', extra: ['gender']}), 'string');
1010
});
1111

1212
test('gender with locale ru_RU includes', t => {
13-
t.true(["Женский", "Мужской"].includes(gender({locale: 'ru_RU'})));
14-
t.false(["foo", "bar"].includes(gender({locale: 'ru_RU'})));
15-
});
13+
t.true(['Женский', 'Мужской'].includes(gender({locale: 'ru_RU'})));
14+
t.false(['foo', 'bar'].includes(gender({locale: 'ru_RU'})));
15+
});

0 commit comments

Comments
 (0)