UNPKG

@aidarkezio/main-func

Version:
56 lines • 2.04 kB
import { expect } from 'chai'; import { googleImage, pinterest, wallpaper, wallpaperv2, stickerLine, stickerTelegram } from './index.js'; describe('Images', () => { it('google-image', done => { googleImage('Minecraft').then(res => { expect(res).to.be.an('array'); res.forEach(v => expect(v).to.be.a('string')); return done(); }).catch(done); }); it('pinterest', done => { pinterest('Minecraft').then(res => { expect(res).to.be.an('array'); res.forEach(v => expect(v).to.be.a('string')); return done(); }).catch(done); }); describe('Wallpaper', () => { it('wallpaper', done => { wallpaper('Minecraft').then(res => { expect(res).to.be.an('array'); res.forEach(v => expect(v).to.be.a('string')); return done(); }).catch(done); }); it('wallpaper V2', done => { wallpaperv2('Wallpaper Anime').then(res => { expect(res).to.be.an('array'); res.forEach(v => expect(v).to.be.a('string')); return done(); }).catch(done); }); // it ('Wallpaper V3', done => { // wallpaperv3('Wallpaper HD').then(res => { // expect(res).to.be.an('array') // res.forEach(v => expect(v).to.be.a('string')) // return done() // }).catch(done) // }) }); it('Sticker Telegram', done => { stickerTelegram('Minecraft').then(res => { expect(res).to.be.an('array'); res.forEach(v => expect(v).to.be.an('object')); return done(); }).catch(done); }); it('Sticker Line', done => { stickerLine('Anime').then(res => { expect(res).to.be.an('array'); res.forEach(v => expect(v).to.be.an('object')); return done(); }).catch(done); }); }); //# sourceMappingURL=test.js.map