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

18 lines
509 B
JavaScript
Raw Permalink Normal View History

2021-11-25 22:33:06 +01:00
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)
2022-01-29 23:00:37 +01:00
expect(p).to.be.rejected
2021-11-25 22:33:06 +01:00
})
})
})