1
0
Fork 0

test more things about streaminfo

This commit is contained in:
boyska 2021-12-05 17:40:36 +01:00
parent b21596d1d7
commit 1fba07bd67

View file

@ -3,11 +3,12 @@ const chai = require('chai')
chai.use(require('chai-as-promised'))
const assert = chai.assert
const exampleName = 'empty'
const expect = chai.expect
const url = 'https://boyska.degenerazione.xyz/radiomanifest/examples/' + exampleName + '/'
const tests = ['empty', 'empty-no-streaminfo', 'empty-invalid-streaminfo']
for (var exampleName of tests) {
let url = 'https://boyska.degenerazione.xyz/radiomanifest/examples/' + exampleName + '/'
describe('examples/' + exampleName, () => {
describe('examples/' + exampleName, () => {
describe('Get radiomanifest', () => {
it('should return a Promise', () => {
const p = radiomanifest.get(url)
@ -21,4 +22,5 @@ describe('examples/' + exampleName, () => {
expect(p.getStreaming().getOptions().length).to.be.equal(0)
})
})
})
})
}