mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update tvtv.us.test.js
This commit is contained in:
parent
34dcd59903
commit
e275e04c67
1 changed files with 3 additions and 2 deletions
|
@ -32,7 +32,7 @@ it('can generate valid url', () => {
|
||||||
it('can parse response', async () => {
|
it('can parse response', async () => {
|
||||||
const content = fs.readFileSync(path.resolve(__dirname, '__data__/content.json'))
|
const content = fs.readFileSync(path.resolve(__dirname, '__data__/content.json'))
|
||||||
|
|
||||||
let results = await parser({ content })
|
let results = await parser({ content, request: { agent: null } })
|
||||||
results = results.map(p => {
|
results = results.map(p => {
|
||||||
p.start = p.start.toJSON()
|
p.start = p.start.toJSON()
|
||||||
p.stop = p.stop.toJSON()
|
p.stop = p.stop.toJSON()
|
||||||
|
@ -164,7 +164,8 @@ it('can parse response', async () => {
|
||||||
|
|
||||||
it('can handle empty guide', async () => {
|
it('can handle empty guide', async () => {
|
||||||
const results = await parser({
|
const results = await parser({
|
||||||
content: '[]'
|
content: '[]',
|
||||||
|
request: { agent: null }
|
||||||
})
|
})
|
||||||
|
|
||||||
expect(results).toMatchObject([])
|
expect(results).toMatchObject([])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue