[fix] path.existsSync was moved to fs.existsSync

This commit is contained in:
Farrin Reid 2012-07-07 05:34:05 -08:00
parent d1ffccba60
commit a0749b36ac
2 changed files with 4 additions and 4 deletions

View file

@ -7,11 +7,11 @@ module.exports = testCase({
test_mkdirSyncRecursive: function(test) {
var dir = __dirname + '/_tmp/foo/bar';
test.equals(path.existsSync(dir), false, 'Dir shouldn\'t exist - clean it up manually?');
test.equals(fs.existsSync(dir), false, 'Dir shouldn\'t exist - clean it up manually?');
wrench.mkdirSyncRecursive(dir, 0777);
test.equals(path.existsSync(dir), true, 'Dir should exist now');
test.equals(fs.existsSync(dir), true, 'Dir should exist now');
// clean up
while (dir != __dirname) {