From 85a2ad6986a4723a6e890a8ef4fb0f26218bdccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Daoust?= Date: Thu, 30 Nov 2023 13:38:40 +0100 Subject: [PATCH] Fix datatracker alternate URL test for IETF specs (#1146) The datatracker URL does not have a trailing `/`. --- test/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index 999f6f85..0a2a947f 100644 --- a/test/index.js +++ b/test/index.js @@ -209,10 +209,9 @@ describe("List of specs", () => { const wrong = specs .filter(s => s.url.match(/\/www.rfc-editor\.org\/rfc/)) .filter(s => { - console.log(s); const draft = computeShortname(s.url); return !s.nightly.alternateUrls.includes( - `https://datatracker.ietf.org/doc/html/${draft.shortname}/`); + `https://datatracker.ietf.org/doc/html/${draft.shortname}`); }); assert.deepStrictEqual(wrong, []); });