1
0
Bifurcation 0
bifurqué depuis boyska/radiomanifest.js
radiomanifest.js/test/radiomanifest.test.js
2021-12-05 16:58:36 +01:00

25 lignes
646 o
JavaScript

const radiomanifest = require('../radiomanifest.js')
const chai = require('chai')
chai.use(require('chai-as-promised'))
const expect = chai.expect
describe('radiomanifest.js', () => {
describe('Get a radiomanifest', () => {
it('should return a Promise', () => {
const p = radiomanifest.get('http://example.com/')
expect(p instanceof Promise).to.be.eql(true)
})
it('should reject on invalid URL', () => {
const p = radiomanifest.get('http://example.com/')
expect(p).to.eventually.be.rejected
})
})
describe('streaming', () => {
it('shoud return a valid streaming URL', () => {
})
})
})