From 12e2f5b0c9f8c177b8e0cfc4762b627fcf6fa8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20R=C3=A8gne?= Date: Sat, 18 Sep 2021 11:52:43 +0200 Subject: [PATCH] fix: Actualiser les tests de France tv. --- test/integration/scraper/francetv.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/integration/scraper/francetv.js b/test/integration/scraper/francetv.js index 8bfd645e..839d2fde 100644 --- a/test/integration/scraper/francetv.js +++ b/test/integration/scraper/francetv.js @@ -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(...)`); }); });