1
0
Fork 0
radiomanifest.js/test/radiomanifest.test.js

26 lines
646 B
JavaScript
Raw Permalink Normal View History

2021-11-18 15:35:32 +01:00
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', () => {
2021-12-05 16:52:19 +01:00
const p = radiomanifest.get('http://example.com/')
2021-11-18 15:35:32 +01:00
expect(p instanceof Promise).to.be.eql(true)
})
it('should reject on invalid URL', () => {
2021-12-05 16:52:19 +01:00
const p = radiomanifest.get('http://example.com/')
2021-11-18 15:35:32 +01:00
expect(p).to.eventually.be.rejected
})
})
describe('streaming', () => {
it('shoud return a valid streaming URL', () => {
})
})
})