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/primbons/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('Primbon', () => {
6
it('ArtiMimpi', done => {
7
(0, index_js_1.artimimpi)('Jalan').then(res => {
8
(0, chai_1.expect)(res).to.be.an('array');
9
res.forEach(v => (0, chai_1.expect)(v).to.be.a('string'));
10
return done();
11
}).catch(done);
12
});
13
it('ArtiNama', done => {
14
(0, index_js_1.artinama)('Windah basudara').then(res => {
15
(0, chai_1.expect)(res).to.be.a('string');
16
return done();
17
}).catch(done);
18
});
19
it('NomorHoki', done => {
20
(0, index_js_1.nomorhoki)(6213353).then(res => {
21
(0, chai_1.expect)(res).to.be.an('Object');
22
(0, chai_1.expect)(res).to.haveOwnProperty('nomer');
23
(0, chai_1.expect)(res.angka_bagua_shuzi).to.be.a('number');
24
(0, chai_1.expect)(res.positif.kekayaan).to.be.a('number');
25
(0, chai_1.expect)(res.positif.kesehatan).to.be.a('number');
26
(0, chai_1.expect)(res.positif.cinta).to.be.a('number');
27
(0, chai_1.expect)(res.positif.kestabilan).to.be.a('number');
28
(0, chai_1.expect)(res.positif.positif).to.be.a('number');
29
(0, chai_1.expect)(res.negatif.perselisihan).to.be.a('number');
30
(0, chai_1.expect)(res.negatif.kehilangan).to.be.a('number');
31
(0, chai_1.expect)(res.negatif.malapetaka).to.be.a('number');
32
(0, chai_1.expect)(res.negatif.Kehancuran).to.be.a('number');
33
(0, chai_1.expect)(res.negatif.negatif).to.be.a('number');
34
return done();
35
}).catch(done);
36
});
37
it('Zodiac', done => {
38
try {
39
const res = (0, index_js_1.getZodiac)(1, 1);
40
(0, chai_1.expect)(res).equal('capricorn');
41
return done();
42
}
43
catch (e) {
44
return done();
45
}
46
});
47
});
48
//# sourceMappingURL=test.js.map
49