Skip to content

Commit

Permalink
fix: Actualiser les tests de France tv.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Sep 18, 2021
1 parent df3b5ba commit 12e2f5b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/integration/scraper/francetv.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ describe("Scraper: France tv", function () {
});

it("should return video URL", async function () {
const url = new URL("https://www.france.tv/france-2/journal-20h00" +
"/1133923-journal-20h00.html");
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(new URL(file).pathname.endsWith("=/master.m3u8"),
assert.ok(new URL(file).pathname.endsWith("/master.m3u8"),
`new URL("${file}").pathname.endsWith(...)`);
});
});

0 comments on commit 12e2f5b

Please sign in to comment.