mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
doc: update default branch name in test/**
Refs: https://github.com/nodejs/node/issues/33864 PR-URL: https://github.com/nodejs/node/pull/43445 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
parent
f7770ed508
commit
8c4cf96967
4 changed files with 5 additions and 5 deletions
|
@ -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)) {
|
||||
|
|
2
test/fixtures/package-main-enoent/test.js
vendored
2
test/fixtures/package-main-enoent/test.js
vendored
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue