diff options
Diffstat (limited to 'test/parallel/test-fs-null-bytes.js')
-rw-r--r-- | test/parallel/test-fs-null-bytes.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/parallel/test-fs-null-bytes.js b/test/parallel/test-fs-null-bytes.js index a21fe516a0..0552801b2d 100644 --- a/test/parallel/test-fs-null-bytes.js +++ b/test/parallel/test-fs-null-bytes.js @@ -33,13 +33,15 @@ function check(async, sync) { assert.strictEqual(er.code, 'ENOENT'); }); - if (sync) + if (sync) { assert.throws(() => { sync.apply(null, argsSync); }, expected); + } - if (async) + if (async) { async.apply(null, argsAsync); + } } check(fs.access, fs.accessSync, 'foo\u0000bar'); |