text: import assert from "node:assert";
  import { extract } from "../../../src/core/scrapers.js";
  
  describe("Scraper: France tv", function () {
      it("should return URL when it's not a video", async function () {
          const url = new URL("https://www.france.tv/spectacles-et-culture/");
          const options = { depth: false, incognito: false };
  
          const file = await extract(url, options);
          assert.strictEqual(file, url.href);
      });
  
      it("should return video URL", async function () {
          const url = new URL("https://www.france.tv/france-3" +
                                                     "/des-racines-et-des-ailes" +
                                           "/316863-les-imprenables-forteresses" +
                                       "-cathares-queribus-et-peyrepertuse.html");
          const options = { depth: false, incognito: false };
  
          const file = await extract(url, options);
          assert.ok(null !== file &&
                                  new URL(file).pathname.endsWith("/master.m3u8"),
                    `new URL("${file}").pathname.endsWith(...)`);
      });
  });
  