Update index.test.js

This commit is contained in:
Aleksandr Statciuk 2022-01-31 05:47:54 +03:00
parent e5c8dd3b41
commit 1131b43cd8
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ it('return "Connection timeout" error if server does not response', done => {
lang: 'en',
name: 'CNN'
}
grabber.grab(channel, config, (data, err) => {
grabber.grab(channel, '2022-01-01', config, (data, err) => {
expect(err.message).toBe('Connection timeout')
done()
})
@ -54,7 +54,7 @@ it('can grab single channel programs', done => {
name: '1TV'
}
grabber
.grab(channel, config, (data, err) => {
.grab(channel, '2022-01-01', config, (data, err) => {
if (err) {
console.log(` Error: ${err.message}`)
done()