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