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