GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — benchmark: change assert() to assert.ok() · nodejs/node@1be0ee7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • benchmark/fs
    • bench-chownSync.js
    • bench-linkSync.js
    • bench-readlinkSync.js
    • bench-readvSync.js
    • bench-renameSync.js
    • bench-symlinkSync.js
    • bench-writevSync.js
    • read-stream-throughput.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎benchmark/fs/bench-chownSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-chownSync.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function main({ n, type, method }) {
4545
}
4646
}
4747
bench.end(n);
48-
assert(hasError);
48+
assert.ok(hasError);
4949
break;
5050
}
5151
default:
Collapse file

‎benchmark/fs/bench-linkSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-linkSync.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function main({ n, type }) {
4141
}
4242
}
4343
bench.end(n);
44-
assert(hasError);
44+
assert.ok(hasError);
4545
break;
4646
}
4747
default:
Collapse file

‎benchmark/fs/bench-readlinkSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-readlinkSync.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function main({ n, type }) {
3030
returnValue = fs.readlinkSync(tmpdir.resolve(`.readlink-sync-${i}`), { encoding: 'utf8' });
3131
}
3232
bench.end(n);
33-
assert(returnValue);
33+
assert.ok(returnValue);
3434
break;
3535
}
3636

@@ -45,7 +45,7 @@ function main({ n, type }) {
4545
}
4646
}
4747
bench.end(n);
48-
assert(hasError);
48+
assert.ok(hasError);
4949
break;
5050
}
5151
default:
Collapse file

‎benchmark/fs/bench-readvSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-readvSync.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function main({ n, type }) {
4949
}
5050

5151
bench.end(n);
52-
assert(hasError);
52+
assert.ok(hasError);
5353
break;
5454
}
5555
default:
Collapse file

‎benchmark/fs/bench-renameSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-renameSync.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function main({ n, type }) {
2323
}
2424
}
2525
bench.end(n);
26-
assert(hasError);
26+
assert.ok(hasError);
2727
break;
2828
}
2929
case 'valid': {
Collapse file

‎benchmark/fs/bench-symlinkSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-symlinkSync.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function main({ n, type }) {
4242
}
4343
}
4444
bench.end(n);
45-
assert(hasError);
45+
assert.ok(hasError);
4646
break;
4747
}
4848
default:
Collapse file

‎benchmark/fs/bench-writevSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-writevSync.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function main({ n, type }) {
3030
}
3131

3232
bench.end(n);
33-
assert(result);
33+
assert.ok(result);
3434
fs.closeSync(fd);
3535
break;
3636
case 'invalid': {
@@ -46,7 +46,7 @@ function main({ n, type }) {
4646
}
4747

4848
bench.end(n);
49-
assert(hasError);
49+
assert.ok(hasError);
5050
break;
5151
}
5252
default:
Collapse file

‎benchmark/fs/read-stream-throughput.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/read-stream-throughput.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function main(conf) {
6767
}
6868

6969
function runTest(filesize, highWaterMark, encoding, n) {
70-
assert(fs.statSync(filename).size === filesize * n);
70+
assert.strictEqual(fs.statSync(filename).size, filesize * n);
7171
const rs = fs.createReadStream(filename, {
7272
highWaterMark,
7373
encoding,

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.