diff options
author | Rich Trott <rtrott@gmail.com> | 2017-04-09 10:53:30 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-04-12 14:25:33 -0700 |
commit | 06c29a66d479cf324037537d319dd2368b2692b7 (patch) | |
tree | 6746b995c6e87d11dfc9197fb088b92f371cdc18 /test/parallel/test-fs-null-bytes.js | |
parent | 6f202ef85710374a832cb38701302d999b18fe5f (diff) | |
download | android-node-v8-06c29a66d479cf324037537d319dd2368b2692b7.tar.gz android-node-v8-06c29a66d479cf324037537d319dd2368b2692b7.tar.bz2 android-node-v8-06c29a66d479cf324037537d319dd2368b2692b7.zip |
test: remove common.fail()
common.fail() was added to paste over issues with assert.fail() function
signature. assert.fail() has been updated to accept a single argument so
common.fail() is no longer necessary.
PR-URL: https://github.com/nodejs/node/pull/12293
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-null-bytes.js')
-rw-r--r-- | test/parallel/test-fs-null-bytes.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-fs-null-bytes.js b/test/parallel/test-fs-null-bytes.js index 9adeeea3df..e9f421a6c4 100644 --- a/test/parallel/test-fs-null-bytes.js +++ b/test/parallel/test-fs-null-bytes.js @@ -95,10 +95,10 @@ check(fs.symlink, fs.symlinkSync, fileUrl, 'foobar'); check(fs.symlink, fs.symlinkSync, 'foobar', fileUrl); check(fs.truncate, fs.truncateSync, fileUrl); check(fs.unlink, fs.unlinkSync, fileUrl); -check(null, fs.unwatchFile, fileUrl, common.fail); +check(null, fs.unwatchFile, fileUrl, assert.fail); check(fs.utimes, fs.utimesSync, fileUrl, 0, 0); -check(null, fs.watch, fileUrl, common.fail); -check(null, fs.watchFile, fileUrl, common.fail); +check(null, fs.watch, fileUrl, assert.fail); +check(null, fs.watchFile, fileUrl, assert.fail); check(fs.writeFile, fs.writeFileSync, fileUrl, 'abc'); check(fs.access, fs.accessSync, fileUrl2); @@ -123,10 +123,10 @@ check(fs.symlink, fs.symlinkSync, fileUrl2, 'foobar'); check(fs.symlink, fs.symlinkSync, 'foobar', fileUrl2); check(fs.truncate, fs.truncateSync, fileUrl2); check(fs.unlink, fs.unlinkSync, fileUrl2); -check(null, fs.unwatchFile, fileUrl2, common.fail); +check(null, fs.unwatchFile, fileUrl2, assert.fail); check(fs.utimes, fs.utimesSync, fileUrl2, 0, 0); -check(null, fs.watch, fileUrl2, common.fail); -check(null, fs.watchFile, fileUrl2, common.fail); +check(null, fs.watch, fileUrl2, assert.fail); +check(null, fs.watchFile, fileUrl2, assert.fail); check(fs.writeFile, fs.writeFileSync, fileUrl2, 'abc'); // an 'error' for exists means that it doesn't exist. |