diff options
author | Mithun Sasidharan <mithunsasidharan89@gmail.com> | 2017-12-06 21:08:06 +0530 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2017-12-08 13:37:33 -0500 |
commit | acd427713422138a92f74a4c3c2a1f6d8ecf9778 (patch) | |
tree | 005ed9f2b3382df5bc2cb4e4e4af6164815c4c4d /test/parallel/test-fs-watchfile.js | |
parent | 20a8e83e44a6555a40c9d5f367a9a7be8fed0374 (diff) | |
download | node-new-acd427713422138a92f74a4c3c2a1f6d8ecf9778.tar.gz |
test: replace assert.throws w/ common.expectsError
PR-URL: https://github.com/nodejs/node/pull/17497
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-watchfile.js')
-rw-r--r-- | test/parallel/test-fs-watchfile.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-fs-watchfile.js b/test/parallel/test-fs-watchfile.js index f980d8f3fc..fe0d89c42e 100644 --- a/test/parallel/test-fs-watchfile.js +++ b/test/parallel/test-fs-watchfile.js @@ -24,9 +24,9 @@ common.expectsError( type: TypeError }); -assert.throws(function() { +common.expectsError(function() { fs.watchFile(new Object(), common.mustNotCall()); -}, common.expectsError({ code: 'ERR_INVALID_ARG_TYPE', type: TypeError })); +}, { code: 'ERR_INVALID_ARG_TYPE', type: TypeError }); const enoentFile = path.join(common.tmpDir, 'non-existent-file'); const expectedStatObject = new fs.Stats( |