text: import assert      from "assert";
  import { extract } from "../../../src/core/scrapers.js";
  
  describe("Scraper: Futura Sciences", function () {
      it("should return page URL when there isn't video", async function () {
          const url = new URL("https://www.futura-sciences.com/tech/telecharger" +
                                                                     "/kodi-287");
          const options = { depth: false, incognito: false };
  
          const file = await extract(url, options);
          assert.strictEqual(file, url.href);
      });
  
      it("should return image URL when it's a image", async function () {
          const url = new URL("https://www.futura-sciences.com" +
                                                            "/favicon-16x16.png");
          const options = { depth: false, incognito: false };
  
          const file = await extract(url, options);
          assert.strictEqual(file, url.href);
      });
  
      it("should return video URL from iframe", async function () {
          const url = new URL("https://www.futura-sciences.com/sciences" +
                         "/actualites/acces-espace-video-decollage-atterrissage" +
                                      "-reussi-prototype-starship-spacex-80782/");
          const options = { depth: false, incognito: false };
  
          const file = await extract(url, options);
          assert.strictEqual(file,
              "https://v.kolplay.com/doDeMzbVkpr/index.m3u8");
      });
  
      it("should return video URL from vsly-player", async function () {
          const url = new URL("https://www.futura-sciences.com/sciences/videos" +
                                            "/jupiter-devoilee-sonde-juno-5580/");
          const options = { depth: false, incognito: false };
  
          const file = await extract(url, options);
          assert.strictEqual(file,
              "https://v.kolplay.com/3ZSdTrtt4G5/index.m3u8");
      });
  });
  