new tests for source404
This commit is contained in:
parent
3f8796c74c
commit
469c0cb206
1 changed files with 22 additions and 0 deletions
22
test/example-source404.test.js
Normal file
22
test/example-source404.test.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
const radiomanifest = require('../radiomanifest.js')
|
||||
const chai = require('chai')
|
||||
chai.use(require('chai-as-promised'))
|
||||
const assert = chai.assert
|
||||
|
||||
const exampleName = 'stream404'
|
||||
const expect = chai.expect
|
||||
const url = 'https://boyska.degenerazione.xyz/radiomanifest/examples/' + exampleName + '/'
|
||||
|
||||
describe('examples/' + exampleName, () => {
|
||||
describe('streaming', () => {
|
||||
it('shoud return one streaming option', async () => {
|
||||
const p = await radiomanifest.get(url)
|
||||
expect(p.getStreaming().getOptions().length).to.be.equal(1)
|
||||
})
|
||||
it('... whose url is stream.m3u', async () => {
|
||||
const p = await radiomanifest.get(url)
|
||||
expect(p.getStreaming().getOptions()[0]).to.be.equal(1)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in a new issue