diff --git a/test/example-empty.test.js b/test/example-empty.test.js index a9ef0d5..3da751c 100644 --- a/test/example-empty.test.js +++ b/test/example-empty.test.js @@ -3,11 +3,12 @@ const chai = require('chai') chai.use(require('chai-as-promised')) const assert = chai.assert +const exampleName = 'empty' const expect = chai.expect -const url = 'https://boyska.degenerazione.xyz/radiomanifest/examples/empty/' +const url = 'https://boyska.degenerazione.xyz/radiomanifest/examples/' + exampleName + '/' -describe('radiomanifest.js', () => { - describe('Get empty radiomanifest', () => { +describe('examples/' + exampleName, () => { + describe('Get radiomanifest', () => { it('should return a Promise', () => { const p = radiomanifest.get(url) expect(p instanceof Promise).to.be.eql(true) diff --git a/test/radiomanifest.test.js b/test/radiomanifest.test.js index 6d8f59c..0d940dd 100644 --- a/test/radiomanifest.test.js +++ b/test/radiomanifest.test.js @@ -7,12 +7,12 @@ const expect = chai.expect describe('radiomanifest.js', () => { describe('Get a radiomanifest', () => { it('should return a Promise', () => { - const p = radiomanifest.get('http://omstring') + 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://invalidurl') + const p = radiomanifest.get('http://example.com/') expect(p).to.eventually.be.rejected }) })