From 038decfbc3245e2dfdb8f5af89bab0c9df1d6c24 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Fri, 17 Jun 2022 10:49:22 +0200 Subject: [PATCH] doc: update default branch name in `test/**` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/issues/33864 PR-URL: https://github.com/nodejs/node/pull/43445 Reviewed-By: Richard Lau Reviewed-By: LiviaMedeiros Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Tobias Nießen Reviewed-By: Darshan Sen Reviewed-By: Antoine du Hamel --- test/doctool/test-doctool-versions.mjs | 4 ++-- test/fixtures/package-main-enoent/test.js | 2 +- test/parallel/test-fs-promises-file-handle-readFile.js | 2 +- test/wpt/README.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/doctool/test-doctool-versions.mjs b/test/doctool/test-doctool-versions.mjs index 87e17ba07277dd..10eb8467bb110c 100644 --- a/test/doctool/test-doctool-versions.mjs +++ b/test/doctool/test-doctool-versions.mjs @@ -62,8 +62,8 @@ for (const version of versions) { // Check that the minimum number of versions were returned. // Later versions are allowed, but not checked for here (they were checked // above). -// Also check for the previous semver major -- From master this will be the -// most recent major release. +// Also check for the previous semver major -- From the main branch this will be +// the most recent major release. const thisMajor = Number.parseInt(process.versions.node.split('.')[0]); const prevMajorString = `${thisMajor - 1}.x`; if (!expected.includes(prevMajorString)) { diff --git a/test/fixtures/package-main-enoent/test.js b/test/fixtures/package-main-enoent/test.js index d698085e5dd554..5d75076b6af0f5 100644 --- a/test/fixtures/package-main-enoent/test.js +++ b/test/fixtures/package-main-enoent/test.js @@ -3,6 +3,6 @@ // The path in "main" in "package.json" does not exist here, but it does in // the copy in node_modules. This is being tested because bluebird tests depend // on this behavior and it was accidentally broken by a seemingly unrelated -// commit on master. +// commit on the main branch. require('package-main-enoent'); diff --git a/test/parallel/test-fs-promises-file-handle-readFile.js b/test/parallel/test-fs-promises-file-handle-readFile.js index 880b97d70713e1..8316862040ea9a 100644 --- a/test/parallel/test-fs-promises-file-handle-readFile.js +++ b/test/parallel/test-fs-promises-file-handle-readFile.js @@ -103,7 +103,7 @@ async function doReadAndCancel() { // Validate file size is within range for reading { - // Variable taken from https://github.com/nodejs/node/blob/master/lib/internal/fs/promises.js#L5 + // Variable taken from https://github.com/nodejs/node/blob/1377163f3351/lib/internal/fs/promises.js#L5 const kIoMaxLength = 2 ** 31 - 1; const newFile = path.resolve(tmpDir, 'dogs-running3.txt'); diff --git a/test/wpt/README.md b/test/wpt/README.md index b8ded27ef37d78..6c5ea4d5a41071 100644 --- a/test/wpt/README.md +++ b/test/wpt/README.md @@ -167,4 +167,4 @@ In that case it needs to be marked with `skip` instead of `fail`. [Web Platform Tests]: https://github.com/web-platform-tests/wpt [`test/fixtures/wpt/README.md`]: ../fixtures/wpt/README.md -[git node wpt]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md#git-node-wpt +[git node wpt]: https://github.com/nodejs/node-core-utils/blob/HEAD/docs/git-node.md#git-node-wpt