feito fork de boyska/radiomanifest.js
17 linhas
509 B
JavaScript
17 linhas
509 B
JavaScript
const radiomanifest = require('../radiomanifest.js')
|
|
const chai = require('chai')
|
|
chai.use(require('chai-as-promised'))
|
|
const assert = chai.assert
|
|
|
|
const expect = chai.expect
|
|
const testName = 'idontexist'
|
|
const url = 'https://example.org/radiomanifest/examples/' + testName + '/'
|
|
|
|
describe('radiomanifest.js supports example ' + testName, () => {
|
|
describe('Get empty radiomanifest', () => {
|
|
it('should throw', () => {
|
|
const p = radiomanifest.get(url)
|
|
expect(p).to.be.rejected
|
|
})
|
|
})
|
|
})
|