Permalink
Browse files

Fixed warnings on existsSync

  • Loading branch information...
1 parent fe4aeec commit ef71c7c4e84bffdb0e2d63338ba213b603f7ed45 @ryankirkman ryankirkman committed Aug 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/valid-packages-test.js
@@ -51,7 +51,7 @@ packages.map(function (pkg) {
pname = pkg_name(pkg),
context = {};
package_vows[pname + " has package.json"] = function (pkg) {
- assert.ok(path.existsSync(pkg), pkg_name(pkg) + " missing!");
+ assert.ok(fs.existsSync(pkg), pkg_name(pkg) + " missing!");
};
package_vows[pname + " package.json is well-formed"] = function (pkg) {
assert.ok(parse(pkg, true),
@@ -97,7 +97,7 @@ packages.map(function (pkg) {
var json = parse(pkg, true, true);
var filePath = "./ajax/libs/" + json.name + "/"+ json.version
+ "/" + json.filename;
- assert.ok(path.existsSync(filePath),
+ assert.ok(fs.existsSync(filePath),
filePath +" does not exist but is referenced in package.json!");
};

0 comments on commit ef71c7c

Please sign in to comment.