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