Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@bochilteam/scraper/lib/esm/primbons/test.js
1126 views
1
import { expect } from 'chai';
2
import { artimimpi, artinama, nomorhoki, getZodiac } from './index.js';
3
describe('Primbon', () => {
4
it('ArtiMimpi', done => {
5
artimimpi('Jalan').then(res => {
6
expect(res).to.be.an('array');
7
res.forEach(v => expect(v).to.be.a('string'));
8
return done();
9
}).catch(done);
10
});
11
it('ArtiNama', done => {
12
artinama('Windah basudara').then(res => {
13
expect(res).to.be.a('string');
14
return done();
15
}).catch(done);
16
});
17
it('NomorHoki', done => {
18
nomorhoki(6213353).then(res => {
19
expect(res).to.be.an('Object');
20
expect(res).to.haveOwnProperty('nomer');
21
expect(res.angka_bagua_shuzi).to.be.a('number');
22
expect(res.positif.kekayaan).to.be.a('number');
23
expect(res.positif.kesehatan).to.be.a('number');
24
expect(res.positif.cinta).to.be.a('number');
25
expect(res.positif.kestabilan).to.be.a('number');
26
expect(res.positif.positif).to.be.a('number');
27
expect(res.negatif.perselisihan).to.be.a('number');
28
expect(res.negatif.kehilangan).to.be.a('number');
29
expect(res.negatif.malapetaka).to.be.a('number');
30
expect(res.negatif.Kehancuran).to.be.a('number');
31
expect(res.negatif.negatif).to.be.a('number');
32
return done();
33
}).catch(done);
34
});
35
it('Zodiac', done => {
36
try {
37
const res = getZodiac(1, 1);
38
expect(res).equal('capricorn');
39
return done();
40
}
41
catch (e) {
42
return done();
43
}
44
});
45
});
46
//# sourceMappingURL=test.js.map
47