summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-05-10 16:40:03 -0700
committerisaacs <i@izs.me>2013-05-10 16:40:03 -0700
commit5e9c7a92f20877793003887093cf6920fe8d5c99 (patch)
tree4a10acac7a32736c5730574065c82da1ce7ce80c
parentfede68fd68924117a46420c1ecfe42fe681b4ae3 (diff)
downloadnode-5e9c7a92f20877793003887093cf6920fe8d5c99.tar.gz
test: Darwin file watcher has paths now
Even when watching subdirs.
-rw-r--r--test/simple/test-fs-watch.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/simple/test-fs-watch.js b/test/simple/test-fs-watch.js
index 88c335912..5c8b8bee2 100644
--- a/test/simple/test-fs-watch.js
+++ b/test/simple/test-fs-watch.js
@@ -66,12 +66,8 @@ assert.doesNotThrow(
watcher.on('change', function(event, filename) {
assert.equal('change', event);
- // darwin only shows the file path for subdir watching,
- // not for individual file watching.
- if (expectFilePath && process.platform !== 'darwin') {
+ if (expectFilePath) {
assert.equal('watch.txt', filename);
- } else {
- assert.equal(null, filename);
}
watcher.close();
++watchSeenOne;
@@ -93,12 +89,8 @@ assert.doesNotThrow(
var watcher = fs.watch(filepathTwo, function(event, filename) {
assert.equal('change', event);
- // darwin only shows the file path for subdir watching,
- // not for individual file watching.
- if (expectFilePath && process.platform !== 'darwin') {
+ if (expectFilePath) {
assert.equal('hasOwnProperty', filename);
- } else {
- assert.equal(null, filename);
}
watcher.close();
++watchSeenTwo;