From 0314a10e10927a52287cb5930f3ddf3c10bb6a22 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 17 Feb 2010 14:30:50 -0800 Subject: [PATCH] Clean up and rename test-stat-handler --- test/mjsunit/{test-stat-handler.js => test-watch-file.js} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename test/mjsunit/{test-stat-handler.js => test-watch-file.js} (84%) diff --git a/test/mjsunit/test-stat-handler.js b/test/mjsunit/test-watch-file.js similarity index 84% rename from test/mjsunit/test-stat-handler.js rename to test/mjsunit/test-watch-file.js index ee3cd8b5616681..977e5838ab830d 100644 --- a/test/mjsunit/test-stat-handler.js +++ b/test/mjsunit/test-watch-file.js @@ -11,7 +11,7 @@ var changes = 0; process.watchFile(f, function (curr, prev) { puts(f + " change"); changes++; - assert.equal(true, curr.mtime != prev.mtime); + assert.ok(curr.mtime != prev.mtime); process.unwatchFile(f); }); @@ -23,5 +23,5 @@ fs.writeSync(fd, 'xyz\n'); fs.closeSync(fd); process.addListener("exit", function () { - assert.equal(true, changes > 0); + assert.ok(changes > 0); });