Skip to content

Commit

Permalink
test: Actualiser les tests de Mastodon.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Jun 22, 2024
1 parent 6b81b26 commit 996e413
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/integration/scraper/mastodon.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ import { extract } from "../../../src/core/scrapers.js";

describe("Scraper: Mastodon", function () {
it("should return video URL [opengraph]", async function () {
const url = new URL(
"https://mastodon.social/@Mi_NumEco_Gouv/108469304023929478",
);
const url = new URL("https://mamot.fr/@davduf/112586386594480705");
const context = { depth: false, incognito: false };

const file = await extract(url, context);
assert.equal(
file,
"https://files.mastodon.social/media_attachments/files/108/469" +
"/303/433/550/677/original/811ce06c46f6638f.mp4",
"https://static.mamot.fr/media_attachments/files/112/586/378/979" +
"/928/374/original/a5230271b22e9032.mp4",
);
});
});

0 comments on commit 996e413

Please sign in to comment.