GeezerVison is showing github.com — test: fix args in parallel/test-fs-null-bytes.js · nodejs/node@7d4941f
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-fs-null-bytes.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ function check(async, sync) { | 22 | 22 |
| 23 | 23 | check(fs.access, fs.accessSync, 'foo\u0000bar'); | 24 | 24 | check(fs.access, fs.accessSync, 'foo\u0000bar', fs.F_OK); | 25 | | -check(fs.appendFile, fs.appendFileSync, 'foo\u0000bar'); | | 25 | +check(fs.appendFile, fs.appendFileSync, 'foo\u0000bar', 'abc'); | 26 | 26 | check(fs.chmod, fs.chmodSync, 'foo\u0000bar', '0644'); | 27 | 27 | check(fs.chown, fs.chownSync, 'foo\u0000bar', 12, 34); | 28 | 28 | check(fs.link, fs.linkSync, 'foo\u0000bar', 'foobar'); | @@ -46,7 +46,7 @@ check(null, fs.unwatchFile, 'foo\u0000bar', common.fail); | 46 | 46 | check(fs.utimes, fs.utimesSync, 'foo\u0000bar', 0, 0); | 47 | 47 | check(null, fs.watch, 'foo\u0000bar', common.fail); | 48 | 48 | check(null, fs.watchFile, 'foo\u0000bar', common.fail); | 49 | | -check(fs.writeFile, fs.writeFileSync, 'foo\u0000bar'); | | 49 | +check(fs.writeFile, fs.writeFileSync, 'foo\u0000bar', 'abc'); | 50 | 50 |
| 51 | 51 | // an 'error' for exists means that it doesn't exist. | 52 | 52 | // one of many reasons why this file is the absolute worst. | |
|