radiomanifest.js/test/radiomanifest.test.js
2023-09-14 00:07:13 +01:00

23 lines
654 B
JavaScript

const radiomanifest = require("../radiomanifest.js");
const chai = require("chai");
chai.use(require("chai-as-promised"));
const expect = chai.expect;
describe("radiomanifest.js", () => {
describe("Get a radiomanifest", () => {
it("should return a Promise", () => {
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://example.com/");
expect(p).to.eventually.be.rejected;
});
});
describe("streaming", () => {
it("shoud return a valid streaming URL", () => {});
});
});