Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

failing test for deleted file in watch

  • Loading branch information...
commit 729b5eda255c7372483a3f2761cc439ce8746383 1 parent c7479d3
@substack authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/watch.js
View
11 test/watch.js
@@ -38,6 +38,17 @@ exports.watch = function () {
'x.txt' : x1,
'y.txt' : y0,
});
+
+ fs.unlink(__dirname + '/watch/y.txt', function () {
+ setTimeout(function () {
+ var c3 = {};
+ vm.runInNewContext(b.bundle(), c3);
+ assert.deepEqual(c3.require('files', '/'), {
+ 'x.txt' : x1,
+ });
+ }, 300);
+ })
+
fn.end();
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.