diff --git a/test/404.test.js b/test/404.test.js new file mode 100644 index 0000000..b8a1deb --- /dev/null +++ b/test/404.test.js @@ -0,0 +1,20 @@ +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; + }) + }) + +}) +