diff options
author | Dany Shaanan <danyshaanan@gmail.com> | 2016-09-17 12:32:33 +0200 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-09-20 16:35:39 -0700 |
commit | d469321946690f95670663e0bb3ad5aa08c6bfda (patch) | |
tree | e348ec360438efcb7acf693844b55673a4482008 /test/parallel/test-vm-proxies.js | |
parent | 66dbd9c9c1556b3ecd3c9f0ce13de99e4d2fc7e5 (diff) | |
download | android-node-v8-d469321946690f95670663e0bb3ad5aa08c6bfda.tar.gz android-node-v8-d469321946690f95670663e0bb3ad5aa08c6bfda.tar.bz2 android-node-v8-d469321946690f95670663e0bb3ad5aa08c6bfda.zip |
tools: add eslint rule prefer-assert-methods
PR-URL: https://github.com/nodejs/node/pull/8622
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com>
Reviewed-By: Jackson Tian <shvyo1987@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Diffstat (limited to 'test/parallel/test-vm-proxies.js')
-rw-r--r-- | test/parallel/test-vm-proxies.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-vm-proxies.js b/test/parallel/test-vm-proxies.js index d789293e1c..d47f750821 100644 --- a/test/parallel/test-vm-proxies.js +++ b/test/parallel/test-vm-proxies.js @@ -8,11 +8,11 @@ var vm = require('vm'); // context. Make sure that the new context has a Proxy object of its own. var sandbox = {}; vm.runInNewContext('this.Proxy = Proxy', sandbox); -assert(typeof sandbox.Proxy === 'function'); -assert(sandbox.Proxy !== Proxy); +assert.strictEqual(typeof sandbox.Proxy, 'function'); +assert.notStrictEqual(sandbox.Proxy, Proxy); // Unless we copy the Proxy object explicitly, of course. sandbox = { Proxy: Proxy }; vm.runInNewContext('this.Proxy = Proxy', sandbox); -assert(typeof sandbox.Proxy === 'function'); -assert(sandbox.Proxy === Proxy); +assert.strictEqual(typeof sandbox.Proxy, 'function'); +assert.strictEqual(sandbox.Proxy, Proxy); |