summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-stat.js
diff options
context:
space:
mode:
authorDany Shaanan <danyshaanan@gmail.com>2016-09-17 12:32:33 +0200
committerJames M Snell <jasnell@gmail.com>2016-09-20 16:35:39 -0700
commitd469321946690f95670663e0bb3ad5aa08c6bfda (patch)
treee348ec360438efcb7acf693844b55673a4482008 /test/parallel/test-fs-stat.js
parent66dbd9c9c1556b3ecd3c9f0ce13de99e4d2fc7e5 (diff)
downloadandroid-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-fs-stat.js')
-rw-r--r--test/parallel/test-fs-stat.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-fs-stat.js b/test/parallel/test-fs-stat.js
index ac68a9ae42..2c844452f0 100644
--- a/test/parallel/test-fs-stat.js
+++ b/test/parallel/test-fs-stat.js
@@ -6,7 +6,7 @@ var fs = require('fs');
fs.stat('.', common.mustCall(function(err, stats) {
assert.ifError(err);
assert.ok(stats.mtime instanceof Date);
- assert(this === global);
+ assert.strictEqual(this, global);
}));
fs.stat('.', common.mustCall(function(err, stats) {
@@ -17,7 +17,7 @@ fs.stat('.', common.mustCall(function(err, stats) {
fs.lstat('.', common.mustCall(function(err, stats) {
assert.ifError(err);
assert.ok(stats.mtime instanceof Date);
- assert(this === global);
+ assert.strictEqual(this, global);
}));
// fstat
@@ -29,10 +29,10 @@ fs.open('.', 'r', undefined, common.mustCall(function(err, fd) {
assert.ifError(err);
assert.ok(stats.mtime instanceof Date);
fs.close(fd);
- assert(this === global);
+ assert.strictEqual(this, global);
}));
- assert(this === global);
+ assert.strictEqual(this, global);
}));
// fstatSync