Skip to content

Commit

Permalink
Fix datatracker alternate URL test for IETF specs (#1146)
Browse files Browse the repository at this point in the history
The datatracker URL does not have a trailing `/`.
  • Loading branch information
tidoust authored Nov 30, 2023
1 parent e30e02c commit 85a2ad6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, []);
});
Expand Down

0 comments on commit 85a2ad6

Please sign in to comment.