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/images/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('Images', () => {
6
it('google-image', done => {
7
(0, index_js_1.googleImage)('Minecraft').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('pinterest', done => {
14
(0, index_js_1.pinterest)('Minecraft').then(res => {
15
(0, chai_1.expect)(res).to.be.an('array');
16
res.forEach(v => (0, chai_1.expect)(v).to.be.a('string'));
17
return done();
18
}).catch(done);
19
});
20
describe('Wallpaper', () => {
21
it('wallpaper', done => {
22
(0, index_js_1.wallpaper)('Minecraft').then(res => {
23
(0, chai_1.expect)(res).to.be.an('array');
24
res.forEach(v => (0, chai_1.expect)(v).to.be.a('string'));
25
return done();
26
}).catch(done);
27
});
28
it('wallpaper V2', done => {
29
(0, index_js_1.wallpaperv2)('Wallpaper Anime').then(res => {
30
(0, chai_1.expect)(res).to.be.an('array');
31
res.forEach(v => (0, chai_1.expect)(v).to.be.a('string'));
32
return done();
33
}).catch(done);
34
});
35
// it ('Wallpaper V3', done => {
36
// wallpaperv3('Wallpaper HD').then(res => {
37
// expect(res).to.be.an('array')
38
// res.forEach(v => expect(v).to.be.a('string'))
39
// return done()
40
// }).catch(done)
41
// })
42
});
43
it('Sticker Telegram', done => {
44
(0, index_js_1.stickerTelegram)('Minecraft').then(res => {
45
(0, chai_1.expect)(res).to.be.an('array');
46
res.forEach(v => (0, chai_1.expect)(v).to.be.an('object'));
47
return done();
48
}).catch(done);
49
});
50
it('Sticker Line', done => {
51
(0, index_js_1.stickerLine)('Anime').then(res => {
52
(0, chai_1.expect)(res).to.be.an('array');
53
res.forEach(v => (0, chai_1.expect)(v).to.be.an('object'));
54
return done();
55
}).catch(done);
56
});
57
});
58
//# sourceMappingURL=test.js.map
59