1
0
Fork 0
radiomanifest.js/test/example-empty.test.js
2021-12-05 16:58:36 +01:00

24 lines
739 B
JavaScript

const radiomanifest = require('../radiomanifest.js')
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 + '/'
describe('examples/' + exampleName, () => {
describe('Get radiomanifest', () => {
it('should return a Promise', () => {
const p = radiomanifest.get(url)
expect(p instanceof Promise).to.be.eql(true)
})
})
describe('streaming', () => {
it('shoud return no streaming option', async () => {
const p = await radiomanifest.get(url)
expect(p.getStreaming().getOptions().length).to.be.equal(0)
})
})
})