radiomanifest.test.js 654 B

1234567891011121314151617181920212223
  1. const radiomanifest = require("../radiomanifest.js");
  2. const chai = require("chai");
  3. chai.use(require("chai-as-promised"));
  4. const expect = chai.expect;
  5. describe("radiomanifest.js", () => {
  6. describe("Get a radiomanifest", () => {
  7. it("should return a Promise", () => {
  8. const p = radiomanifest.get("http://example.com/");
  9. expect(p instanceof Promise).to.be.eql(true);
  10. });
  11. it("should reject on invalid URL", () => {
  12. const p = radiomanifest.get("http://example.com/");
  13. expect(p).to.eventually.be.rejected;
  14. });
  15. });
  16. describe("streaming", () => {
  17. it("shoud return a valid streaming URL", () => {});
  18. });
  19. });