Skip to content

Commit 0314a10

Browse files
committed
Clean up and rename test-stat-handler
1 parent 92292c8 commit 0314a10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/mjsunit/test-stat-handler.js renamed to test/mjsunit/test-watch-file.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var changes = 0;
1111
process.watchFile(f, function (curr, prev) {
1212
puts(f + " change");
1313
changes++;
14-
assert.equal(true, curr.mtime != prev.mtime);
14+
assert.ok(curr.mtime != prev.mtime);
1515
process.unwatchFile(f);
1616
});
1717

@@ -23,5 +23,5 @@ fs.writeSync(fd, 'xyz\n');
2323
fs.closeSync(fd);
2424

2525
process.addListener("exit", function () {
26-
assert.equal(true, changes > 0);
26+
assert.ok(changes > 0);
2727
});

0 commit comments

Comments
 (0)