From 45888e2462b7f49cb903be8f047c7e773effeb15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20R=C3=A8gne?= Date: Tue, 4 Feb 2020 17:43:15 +0100 Subject: [PATCH] fix: Actualiser les tests de Radio. --- test/integration/scraper/radio.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/scraper/radio.js b/test/integration/scraper/radio.js index b6d8256d..d75e8f5b 100644 --- a/test/integration/scraper/radio.js +++ b/test/integration/scraper/radio.js @@ -14,7 +14,7 @@ describe("Scraper: Radio", function () { it("should return audio URL", async function () { const url = "https://www.radio.net/s/fip"; const options = { "depth": 0, "incognito": false }; - const expected = "http://icecast.radiofrance.fr/fip-hifi.aac"; + const expected = "https://icecast.radiofrance.fr/fip-hifi.aac"; const file = await extract(new URL(url), options); assert.strictEqual(file, expected); @@ -23,7 +23,7 @@ describe("Scraper: Radio", function () { it("should return audio URL when protocol is HTTP", async function () { const url = "http://www.radio.net/s/franceinter"; const options = { "depth": 0, "incognito": false }; - const expected = "http://icecast.radiofrance.fr/franceinter-midfi.mp3"; + const expected = "https://icecast.radiofrance.fr/franceinter-midfi.mp3"; const file = await extract(new URL(url), options); assert.strictEqual(file, expected); @@ -41,7 +41,7 @@ describe("Scraper: Radio", function () { it("should return audio URL from french version", async function () { const url = "https://www.radio.fr/s/franceinfo"; const options = { "depth": 0, "incognito": false }; - const expected = "http://direct.franceinfo.fr/live" + + const expected = "https://direct.franceinfo.fr/live" + "/franceinfo-midfi.mp3"; const file = await extract(new URL(url), options);