forked from boyska/radiomanifest.js
fixed test
now it fails, but giving a correct failure!
This commit is contained in:
parent
38762f7c38
commit
07bba1a18f
1 changed files with 4 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
||||||
const radiomanifest = require('../radiomanifest.js')
|
const radiomanifest = require('../radiomanifest.js')
|
||||||
const chai = require('chai')
|
const chai = require('chai')
|
||||||
chai.use(require('chai-as-promised'))
|
chai.use(require('chai-as-promised'))
|
||||||
|
const assert = chai.assert
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
const url = 'https://boyska.degenerazione.xyz/radiomanifest/examples/empty/'
|
const url = 'https://boyska.degenerazione.xyz/radiomanifest/examples/empty/'
|
||||||
|
@ -14,14 +15,9 @@ describe('radiomanifest.js', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('streaming', () => {
|
describe('streaming', () => {
|
||||||
it('shoud return no streaming option', () => {
|
it('shoud return no streaming option', async () => {
|
||||||
const p = radiomanifest.get(url)
|
const p = await radiomanifest.get(url)
|
||||||
p.then(
|
assert.equal(p.getStreaming().getOptions().length, 0)
|
||||||
function (r) {
|
|
||||||
r.getStreaming().getOptions().length.should.equal(0)
|
|
||||||
},
|
|
||||||
function (err) { done(err) }
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue