-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.js
114 lines (86 loc) · 2.9 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import test from 'ava';
import faker from './index.js';
test('faker return type to be object', t => {
t.is(typeof faker(), 'object');
});
test('faker boolean return type to be boolean', t => {
t.is(typeof faker().boolean(), 'boolean');
});
test('faker string return type to be string', t => {
t.is(typeof faker().string(), 'string');
});
test('faker age return type to be number', t => {
t.is(typeof faker().age(), 'number');
});
test('faker animal return type to be string', t => {
t.is(typeof faker().animal(), 'string');
});
test('faker integer return type to be number', t => {
t.is(typeof faker().integer(), 'number');
});
test('faker float return type to be number', t => {
t.is(typeof faker().float(), 'number');
});
test('faker gende return type to be string', t => {
t.is(typeof faker().gender(), 'string');
});
test('faker superhero return type to be string', t => {
t.is(typeof faker().superhero(), 'string');
});
test('faker profession return type to be string', t => {
t.is(typeof faker().profession(), 'string');
});
test('faker ip return type to be string', t => {
t.is(typeof faker().ip(), 'string');
});
test('faker letter return type to be string', t => {
t.is(typeof faker().letter(), 'string');
});
test('faker word return type to be string', t => {
t.is(typeof faker().word(), 'string');
});
test('faker sentence return type to be string', t => {
t.is(typeof faker().sentence(), 'string');
});
test('faker paragraph return type to be string', t => {
t.is(typeof faker().paragraph(), 'string');
});
test('faker domain return type to be string', t => {
t.is(typeof faker().domain(), 'string');
});
test('faker email return type to be string', t => {
t.is(typeof faker().email(), 'string');
});
test('faker firstName return type to be string', t => {
t.is(typeof faker().firstName(), 'string');
});
test('faker lastName return type to be string', t => {
t.is(typeof faker().lastName(), 'string');
});
test('faker url return type to be string', t => {
t.is(typeof faker().url(), 'string');
});
test('faker tld return type to be string', t => {
t.is(typeof faker().tld(), 'string');
});
test('faker browser return type to be string', t => {
t.is(typeof faker().browser(), 'string');
});
test('faker game return type to be string', t => {
t.is(typeof faker().game().title(), 'string');
});
test('faker house return type to be string', t => {
t.is(typeof faker().house().room(), 'string');
});
test('faker sport return type to be string', t => {
t.is(typeof faker().sport().unusual(), 'string');
});
test('faker blood return type to be string', t => {
t.is(typeof faker().blood().group(), 'string');
});
test('faker camera return type to be string', t => {
t.is(typeof faker().camera().brand(), 'string');
});
test('faker computer return type to be string', t => {
t.is(typeof faker().computer().type(), 'string');
});