| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,7 +45,7 @@ function main({ n, type, method }) { | |||
| 45 | 45 | } | |
| 46 | 46 | } | |
| 47 | 47 | bench.end(n); | |
| 48 | - assert(hasError); | ||
| 48 | + assert.ok(hasError); | ||
| 49 | 49 | break; | |
| 50 | 50 | } | |
| 51 | 51 | default: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,7 @@ function main({ n, type }) { | |||
| 41 | 41 | } | |
| 42 | 42 | } | |
| 43 | 43 | bench.end(n); | |
| 44 | - assert(hasError); | ||
| 44 | + assert.ok(hasError); | ||
| 45 | 45 | break; | |
| 46 | 46 | } | |
| 47 | 47 | default: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ function main({ n, type }) { | |||
| 30 | 30 | returnValue = fs.readlinkSync(tmpdir.resolve(`.readlink-sync-${i}`), { encoding: 'utf8' }); | |
| 31 | 31 | } | |
| 32 | 32 | bench.end(n); | |
| 33 | - assert(returnValue); | ||
| 33 | + assert.ok(returnValue); | ||
| 34 | 34 | break; | |
| 35 | 35 | } | |
| 36 | 36 | ||
@@ -45,7 +45,7 @@ function main({ n, type }) { | |||
| 45 | 45 | } | |
| 46 | 46 | } | |
| 47 | 47 | bench.end(n); | |
| 48 | - assert(hasError); | ||
| 48 | + assert.ok(hasError); | ||
| 49 | 49 | break; | |
| 50 | 50 | } | |
| 51 | 51 | default: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,7 +49,7 @@ function main({ n, type }) { | |||
| 49 | 49 | } | |
| 50 | 50 | ||
| 51 | 51 | bench.end(n); | |
| 52 | - assert(hasError); | ||
| 52 | + assert.ok(hasError); | ||
| 53 | 53 | break; | |
| 54 | 54 | } | |
| 55 | 55 | default: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ function main({ n, type }) { | |||
| 23 | 23 | } | |
| 24 | 24 | } | |
| 25 | 25 | bench.end(n); | |
| 26 | - assert(hasError); | ||
| 26 | + assert.ok(hasError); | ||
| 27 | 27 | break; | |
| 28 | 28 | } | |
| 29 | 29 | case 'valid': { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,7 @@ function main({ n, type }) { | |||
| 42 | 42 | } | |
| 43 | 43 | } | |
| 44 | 44 | bench.end(n); | |
| 45 | - assert(hasError); | ||
| 45 | + assert.ok(hasError); | ||
| 46 | 46 | break; | |
| 47 | 47 | } | |
| 48 | 48 | default: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ function main({ n, type }) { | |||
| 30 | 30 | } | |
| 31 | 31 | ||
| 32 | 32 | bench.end(n); | |
| 33 | - assert(result); | ||
| 33 | + assert.ok(result); | ||
| 34 | 34 | fs.closeSync(fd); | |
| 35 | 35 | break; | |
| 36 | 36 | case 'invalid': { | |
@@ -46,7 +46,7 @@ function main({ n, type }) { | |||
| 46 | 46 | } | |
| 47 | 47 | ||
| 48 | 48 | bench.end(n); | |
| 49 | - assert(hasError); | ||
| 49 | + assert.ok(hasError); | ||
| 50 | 50 | break; | |
| 51 | 51 | } | |
| 52 | 52 | default: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,7 +67,7 @@ function main(conf) { | |||
| 67 | 67 | } | |
| 68 | 68 | ||
| 69 | 69 | function runTest(filesize, highWaterMark, encoding, n) { | |
| 70 | - assert(fs.statSync(filename).size === filesize * n); | ||
| 70 | + assert.strictEqual(fs.statSync(filename).size, filesize * n); | ||
| 71 | 71 | const rs = fs.createReadStream(filename, { | |
| 72 | 72 | highWaterMark, | |
| 73 | 73 | encoding, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments