radiomanifest.js/test/404.test.js

18 lines
521 B
JavaScript
Raw Normal View History

2023-09-14 01:07:07 +02:00
const radiomanifest = require("../radiomanifest.js");
const chai = require("chai");
chai.use(require("chai-as-promised"));
const assert = chai.assert;
2021-11-25 22:33:06 +01:00
2023-09-14 01:07:07 +02:00
const expect = chai.expect;
const testName = "idontexist";
const url = "https://example.org/radiomanifest/examples/" + testName + "/";
2021-11-25 22:33:06 +01:00
2023-09-14 01:07:07 +02:00
describe("radiomanifest.js supports example " + testName, () => {
describe("Get empty radiomanifest", () => {
it("should throw", () => {
const p = radiomanifest.get(url);
expect(p).to.be.rejected;
});
});
});