Permalink
Browse files

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

  • Loading branch information...
blakmatrix committed Jul 7, 2012
1 parent d1ffccb commit a0749b36ac44d9085739fb1ce7633b3ae61cc3be
Showing with 4 additions and 4 deletions.
  1. +2 −2 tests/mkdir.js
  2. +2 −2 tests/readdir.js
View
@@ -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) {
View
@@ -23,7 +23,7 @@ module.exports = testCase({
test_readdirSyncRecursive: function(test) {
var dir = path.join(__dirname, 'readdir');
- test.ok(path.existsSync(dir), 'Folders should exist');
+ test.ok(fs.existsSync(dir), 'Folders should exist');
var files = wrench.readdirSyncRecursive(dir);
@@ -33,7 +33,7 @@ module.exports = testCase({
test_readdirRecursive: function(test) {
var dir = path.join(__dirname, 'readdir');
- test.ok(path.existsSync(dir), 'Folders should exist');
+ test.ok(fs.existsSync(dir), 'Folders should exist');
var allFiles = [];

0 comments on commit a0749b3

Please sign in to comment.