Skip to content

Commit 1f009a7

Browse files
committed
use assert/strict
1 parent bb11522 commit 1f009a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/asinit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,12 @@ function ensureTestsIndexJs() {
430430
console.log("- Making sure that 'test/index.js' exists...");
431431
if (!fs.existsSync(testsIndexFile)) {
432432
fs.writeFileSync(testsIndexFile, [
433-
"import assert from \"node:assert\";",
433+
"import assert from \"node:assert/strict\";",
434434
"import { it } from \"node:test\";",
435435
"import { add } from \"../build/debug.js\";",
436436
"",
437437
"it(\"add\", () => {",
438-
" assert.strictEqual(add(1, 2), 3);",
438+
" assert.equal(add(1, 2), 3);",
439439
"});"
440440
].join("\n") + "\n");
441441
console.log(stdoutColors.green(" Created: ") + testsIndexFile);

0 commit comments

Comments
 (0)