Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@bochilteam/scraper/lib/cjs/games/test.js
1126 views
1
"use strict";
2
Object.defineProperty(exports, "__esModule", { value: true });
3
const chai_1 = require("chai");
4
const index_js_1 = require("./index.js");
5
describe('Games', () => {
6
describe('Tebakgambar', () => {
7
it('tebakgambar', done => {
8
(0, index_js_1.tebakgambar)().then(result => {
9
(0, chai_1.expect)(result).to.an('object');
10
(0, chai_1.expect)(result.index).to.a('number');
11
(0, chai_1.expect)(result.img).to.a('string');
12
(0, chai_1.expect)(result.jawaban).to.a('string');
13
(0, chai_1.expect)(result.deskripsi).to.a('string');
14
return done();
15
}).catch(done);
16
});
17
it('tebakgambar JSON', done => {
18
const res = index_js_1.tebakgambarjson;
19
(0, chai_1.expect)(res).to.an('array');
20
(0, chai_1.expect)(res).to.have.lengthOf.at.least(1000);
21
return done();
22
});
23
});
24
describe('Asahotak', () => {
25
it('asahotak', done => {
26
(0, index_js_1.asahotak)().then(result => {
27
(0, chai_1.expect)(result).to.an('object');
28
(0, chai_1.expect)(result.index).to.a('number');
29
(0, chai_1.expect)(result.soal).to.a('string');
30
(0, chai_1.expect)(result.jawaban).to.a('string');
31
return done();
32
}).catch(done);
33
});
34
it('asahotak JSON', done => {
35
const res = index_js_1.asahotakjson;
36
(0, chai_1.expect)(res).to.an('array');
37
(0, chai_1.expect)(res).to.have.lengthOf.at.least(228);
38
return done();
39
});
40
});
41
describe('Caklontong', () => {
42
it('caklontong', done => {
43
(0, index_js_1.caklontong)().then(result => {
44
(0, chai_1.expect)(result).to.an('object');
45
(0, chai_1.expect)(result.index).to.a('number');
46
(0, chai_1.expect)(result.soal).to.a('string');
47
(0, chai_1.expect)(result.jawaban).to.a('string');
48
(0, chai_1.expect)(result.deskripsi).to.a('string');
49
return done();
50
}).catch(done);
51
});
52
it('caklontong JSON', done => {
53
const res = index_js_1.caklontongjson;
54
(0, chai_1.expect)(res).to.an('array');
55
(0, chai_1.expect)(res).to.have.lengthOf.at.least(414);
56
return done();
57
});
58
});
59
describe('Family 100', () => {
60
it('family100', done => {
61
(0, index_js_1.family100)().then(result => {
62
(0, chai_1.expect)(result).to.an('object');
63
(0, chai_1.expect)(result.soal).to.a('string');
64
(0, chai_1.expect)(result.jawaban).to.a('array');
65
return done();
66
}).catch(done);
67
});
68
it('family100 JSON', done => {
69
const res = index_js_1.family100json;
70
(0, chai_1.expect)(res).to.an('array');
71
(0, chai_1.expect)(res).to.have.lengthOf.at.least(7152);
72
return done();
73
});
74
});
75
describe('TebakKata', () => {
76
it('tebakkata', done => {
77
(0, index_js_1.tebakkata)().then(result => {
78
(0, chai_1.expect)(result).to.an('object');
79
(0, chai_1.expect)(result.index).to.a('number');
80
(0, chai_1.expect)(result.soal).to.a('string');
81
(0, chai_1.expect)(result.jawaban).to.a('string');
82
return done();
83
}).catch(done);
84
});
85
it('tebakkata JSON', done => {
86
const res = index_js_1.tebakkatajson;
87
(0, chai_1.expect)(res).to.an('array');
88
(0, chai_1.expect)(res).to.have.lengthOf.at.least(302);
89
return done();
90
});
91
});
92
describe('TebakKimia', () => {
93
it('tebakkimia', done => {
94
(0, index_js_1.tebakkimia)().then(result => {
95
(0, chai_1.expect)(result).to.an('object');
96
(0, chai_1.expect)(result.unsur).to.a('string');
97
(0, chai_1.expect)(result.lambang).to.a('string');
98
return done();
99
}).catch(done);
100
});
101
it('tebakkimia JSON', done => {
102
const res = index_js_1.tebakkimiajson;
103
(0, chai_1.expect)(res).to.an('array');
104
(0, chai_1.expect)(res).to.have.lengthOf.at.least(125);
105
return done();
106
});
107
});
108
describe('Tekateki', () => {
109
it('tekateki', done => {
110
(0, index_js_1.tekateki)().then(result => {
111
(0, chai_1.expect)(result).to.an('object');
112
(0, chai_1.expect)(result.soal).to.a('string');
113
(0, chai_1.expect)(result.jawaban).to.a('string');
114
return done();
115
}).catch(done);
116
});
117
it('tekateki JSON', done => {
118
const res = index_js_1.tekatekijson;
119
(0, chai_1.expect)(res).to.an('array');
120
(0, chai_1.expect)(res).to.have.lengthOf.at.least(200);
121
return done();
122
});
123
});
124
describe('Siapakahaku', () => {
125
it('siapakahaku', done => {
126
(0, index_js_1.siapakahaku)().then(result => {
127
(0, chai_1.expect)(result).to.an('object');
128
(0, chai_1.expect)(result.index).to.a('number');
129
(0, chai_1.expect)(result.soal).to.a('string');
130
(0, chai_1.expect)(result.jawaban).to.a('string');
131
return done();
132
}).catch(done);
133
});
134
it('siapakahaku JSON', done => {
135
const res = index_js_1.siapakahakujson;
136
(0, chai_1.expect)(res).to.an('array');
137
(0, chai_1.expect)(res).to.have.lengthOf.at.least(268);
138
return done();
139
});
140
});
141
describe('Susunkata', () => {
142
it('susunkata', done => {
143
(0, index_js_1.susunkata)().then(result => {
144
(0, chai_1.expect)(result).to.an('object');
145
(0, chai_1.expect)(result.index).to.a('number');
146
(0, chai_1.expect)(result.soal).to.a('string');
147
(0, chai_1.expect)(result.tipe).to.a('string');
148
(0, chai_1.expect)(result.jawaban).to.a('string');
149
return done();
150
}).catch(done);
151
});
152
it('susunkata JSON', done => {
153
const res = index_js_1.susunkatajson;
154
(0, chai_1.expect)(res).to.an('array');
155
(0, chai_1.expect)(res).to.have.lengthOf.at.least(353);
156
return done();
157
});
158
});
159
describe('Tebakbendera', () => {
160
it('tebakbendera', done => {
161
(0, index_js_1.tebakbendera)().then(result => {
162
(0, chai_1.expect)(result).to.an('object');
163
(0, chai_1.expect)(result.flag).to.a('string');
164
(0, chai_1.expect)(result.img).to.a('string');
165
(0, chai_1.expect)(result.name).to.a('string');
166
return done();
167
}).catch(done);
168
});
169
it('tebakbendera JSON', done => {
170
const res = index_js_1.tebakbenderajson;
171
(0, chai_1.expect)(res).to.an('array');
172
(0, chai_1.expect)(res).to.have.lengthOf.at.least(246);
173
return done();
174
});
175
});
176
describe('Tebak Kabupaten', () => {
177
it('tebakkabupaten', done => {
178
(0, index_js_1.tebakkabupaten)().then(result => {
179
(0, chai_1.expect)(result).to.an('object');
180
(0, chai_1.expect)(result.index).to.a('number');
181
(0, chai_1.expect)(result.title).to.a('string');
182
(0, chai_1.expect)(result.url).to.a('string');
183
return done();
184
}).catch(done);
185
});
186
it('tebakkabupaten JSON', done => {
187
const res = index_js_1.tebakkabupatenjson;
188
(0, chai_1.expect)(res).to.an('array');
189
(0, chai_1.expect)(res).to.have.lengthOf.at.least(514);
190
return done();
191
});
192
});
193
describe('Tebak Lirik', () => {
194
it('tebaklirik', done => {
195
(0, index_js_1.tebaklirik)().then(result => {
196
(0, chai_1.expect)(result).to.an('object');
197
(0, chai_1.expect)(result.soal).to.a('string');
198
(0, chai_1.expect)(result.jawaban).to.a('string');
199
return done();
200
}).catch(done);
201
});
202
it('tebaklirik JSON', done => {
203
const res = index_js_1.tebaklirikjson;
204
(0, chai_1.expect)(res).to.an('array');
205
(0, chai_1.expect)(res).to.have.lengthOf.at.least(38);
206
return done();
207
});
208
});
209
describe('Tebak Tebakan', () => {
210
it('tebaktebakan', done => {
211
(0, index_js_1.tebaktebakan)().then(result => {
212
(0, chai_1.expect)(result).to.an('object');
213
(0, chai_1.expect)(result.soal).to.a('string');
214
(0, chai_1.expect)(result.jawaban).to.a('string');
215
return done();
216
}).catch(done);
217
});
218
it('tebaktebakan JSON', done => {
219
const res = index_js_1.tebaktebakanjson;
220
(0, chai_1.expect)(res).to.an('array');
221
(0, chai_1.expect)(res).to.have.lengthOf.at.least(199);
222
return done();
223
});
224
});
225
});
226
//# sourceMappingURL=test.js.map
227