Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
test: test with Node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed Apr 27, 2021
1 parent 6adde0f commit 655ee18
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/test-42-fetch-all/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function nodeRangeToNodeVersion(nodeRange) {
}

for (const platform of knownPlatforms) {
const nodeRanges = ['node8', 'node10', 'node12', 'node14'];
const nodeRanges = ['node8', 'node10', 'node12', 'node14', 'node16'];
for (const nodeRange of nodeRanges) {
const nodeVersion = nodeRangeToNodeVersion(nodeRange);
const archs = ['x64'];
Expand Down
3 changes: 2 additions & 1 deletion test/test-50-fs-runtime-layer-2/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ function bitty(version) {
(8 * /^(node|v)?11/.test(version)) |
(16 * /^(node|v)?12/.test(version)) |
(16 * /^(node|v)?13/.test(version)) |
(32 * /^(node|v)?14/.test(version))
(32 * /^(node|v)?14/.test(version)) |
(32 * /^(node|v)?16/.test(version))
);
}

Expand Down
3 changes: 2 additions & 1 deletion test/test-50-path-as-buffer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ function bitty(version) {
(4 * /^(node|v)?11/.test(version)) |
(4 * /^(node|v)?12/.test(version)) |
(4 * /^(node|v)?13/.test(version)) |
(4 * /^(node|v)?14/.test(version))
(4 * /^(node|v)?14/.test(version)) |
(4 * /^(node|v)?16/.test(version))
); // 4 = has URL
}

Expand Down
2 changes: 1 addition & 1 deletion test/test-79-npm/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const hostVersion = process.version.match(/^v(\d+)/)[1];
const host = 'node' + hostVersion;
const target = process.argv[2] || host;
const windows = process.platform === 'win32';
const npm = { 0: 2, 4: 2, 6: 3, 7: 4, 8: 5, 9: 5, 10: 5, 12: 6, 14: 6 }[
const npm = { 0: 2, 4: 2, 6: 3, 7: 4, 8: 5, 9: 5, 10: 5, 12: 6, 14: 6, 16: 7 }[
hostVersion
];
assert(npm !== undefined);
Expand Down

0 comments on commit 655ee18

Please sign in to comment.