Skip to content

Commit

Permalink
fix: Actualiser les tests de Radio.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Feb 4, 2020
1 parent 47bb0c6 commit 45888e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/scraper/radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 45888e2

Please sign in to comment.