Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

failing watch-test for subdirs

  • Loading branch information...
commit 06d41ccc7d925892b1adeb895c2e32d0c9726b0f 1 parent 2bb081a
@guybrush guybrush authored
Showing with 13 additions and 1 deletion.
  1. +13 −1 test/watch.js
View
14 test/watch.js
@@ -15,6 +15,8 @@ exports.watch = function () {
try { fs.mkdir(__dirname + '/watch', '0777') } catch (e) {}
try { fs.unlinkSync(__dirname + '/watch/x.txt') } catch (e) {}
try { fs.unlinkSync(__dirname + '/watch/y.txt') } catch (e) {}
+ try { fs.mkdir(__dirname + '/watch/subdir', '0777') } catch (e) {}
+ try { fs.unlinkSync(__dirname + '/watch/subdir/z.txt') } catch (e) {}
var x0 = Math.random();
write('x.txt', x0, function () {
@@ -39,7 +41,17 @@ exports.watch = function () {
'x.txt' : x1,
'y.txt' : y0,
});
- fn.end();
+ var z0 = Math.random();
+ write('subdir/z.txt', y0, function () {
+ var c3 = {};
+ vm.runInNewContext(b.bundle(), c3);
+ assert.deepEqual(c3.require('files', '/'), {
+ 'x.txt' : x1,
+ 'y.txt' : y0,
+ 'subdir/z.txt' : z0,
+ });
+ fn.end();
+ });
});
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.