Browse Source

Clean up and rename test-stat-handler

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
0314a10e10
  1. 4
      test/mjsunit/test-watch-file.js

4
test/mjsunit/test-stat-handler.js → test/mjsunit/test-watch-file.js

@ -11,7 +11,7 @@ var changes = 0;
process.watchFile(f, function (curr, prev) { process.watchFile(f, function (curr, prev) {
puts(f + " change"); puts(f + " change");
changes++; changes++;
assert.equal(true, curr.mtime != prev.mtime); assert.ok(curr.mtime != prev.mtime);
process.unwatchFile(f); process.unwatchFile(f);
}); });
@ -23,5 +23,5 @@ fs.writeSync(fd, 'xyz\n');
fs.closeSync(fd); fs.closeSync(fd);
process.addListener("exit", function () { process.addListener("exit", function () {
assert.equal(true, changes > 0); assert.ok(changes > 0);
}); });
Loading…
Cancel
Save