-
Notifications
You must be signed in to change notification settings - Fork 12
/
test.js
68 lines (62 loc) · 2.62 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
'use strict';
const test = require('ava');
const humanNames = require('./');
test(function (t) {
t.assert(humanNames.femaleEn.length > 0);
t.assert(humanNames.maleEn.length > 0);
t.assert(humanNames.allEn.length > 0);
t.assert(humanNames.femaleRandomEn());
t.assert(humanNames.maleRandomEn());
t.assert(humanNames.allRandomEn());
t.assert(humanNames.allRandomEn() !== humanNames.allRandomEn());
t.assert(humanNames.allEn[0] === 'Aaliyah');
t.assert(humanNames.allEn[1] === 'Aaron');
t.assert(humanNames.femaleIt.length > 0);
t.assert(humanNames.maleIt.length > 0);
t.assert(humanNames.allIt.length > 0);
t.assert(humanNames.femaleRandomIt());
t.assert(humanNames.maleRandomIt());
t.assert(humanNames.allRandomIt());
t.assert(humanNames.allRandomIt() !== humanNames.allRandomIt());
t.assert(humanNames.allIt[0] === 'Alessandra');
t.assert(humanNames.allIt[1] === 'Alberto');
t.assert(humanNames.femaleFr.length > 0);
t.assert(humanNames.maleFr.length > 0);
t.assert(humanNames.allFr.length > 0);
t.assert(humanNames.femaleRandomFr());
t.assert(humanNames.maleRandomFr());
t.assert(humanNames.allRandomFr());
t.assert(humanNames.allRandomFr() !== humanNames.allRandomFr());
t.assert(humanNames.allFr[0] === 'Aaliyah');
t.assert(humanNames.allFr[1] === 'Aaron');
t.assert(humanNames.femaleDe.length > 0);
t.assert(humanNames.maleDe.length > 0);
t.assert(humanNames.allDe.length > 0);
t.assert(humanNames.femaleRandomDe());
t.assert(humanNames.maleRandomDe());
t.assert(humanNames.allRandomDe());
t.assert(humanNames.allRandomDe() !== humanNames.allRandomDe());
t.assert(humanNames.allDe[0] === 'Alina');
t.assert(humanNames.allDe[1] === 'Alexander');
t.end();
t.assert(humanNames.femaleEs.length > 0);
t.assert(humanNames.maleEs.length > 0);
t.assert(humanNames.allEs.length > 0);
t.assert(humanNames.femaleRandomEs());
t.assert(humanNames.maleRandomEs());
t.assert(humanNames.allRandomEs());
t.assert(humanNames.allRandomEs() !== humanNames.allRandomEs());
t.assert(humanNames.allEs[0] === 'Abigail');
t.assert(humanNames.allEs[1] === 'Aarón');
t.end();
t.assert(humanNames.femaleNl.length > 0);
t.assert(humanNames.maleNl.length > 0);
t.assert(humanNames.allNl.length > 0);
t.assert(humanNames.femaleRandomNl());
t.assert(humanNames.maleRandomNl());
t.assert(humanNames.allRandomNl());
t.assert(humanNames.allRandomNl() !== humanNames.allRandomNl());
t.assert(humanNames.allNl[0] === 'Aafje');
t.assert(humanNames.allNl[1] === 'Aad');
t.end();
});