Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

path.exists was moved to fs.exists

  • Loading branch information...
commit fb174db80879e16defea7ad881b94e0c5b8eb2c5 1 parent 68cd912
@jfhbrook jfhbrook authored jrsacks committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/jezebel.js
  2. +1 −1  spec/jezebel_spec.js
View
4 lib/jezebel.js
@@ -42,7 +42,7 @@ function runTests(tests) {
tests = tests || ['spec'];
var childPath;
var windowsPath = rootDir + '/node_modules/.bin/jessie.cmd';
- path.exists(windowsPath, function(pathExists) {
+ fs.exists(windowsPath, function(pathExists) {
if (pathExists) {
childPath = windowsPath;
} else {
@@ -65,7 +65,7 @@ function runTests(tests) {
function loadConfig(callback) {
var configFile = process.cwd() + '/.jezebel';
- path.exists(configFile, function(exists) {
+ fs.exists(configFile, function(exists) {
if (exists) {
config = require(configFile);
extend(session.context, config);
View
2  spec/jezebel_spec.js
@@ -12,7 +12,7 @@ describe('jezebel', function() {
spyOn(childProcess, 'spawn');
spyOn(process.stdin, 'emit');
spyOn(process, 'nextTick');
- spyOn(require('path'), 'exists').andCallFake(function(file, callback) {
+ spyOn(require('fs'), 'exists').andCallFake(function(file, callback) {
if(file == process.cwd() + '/.jezebel')
callback(true);
else
Please sign in to comment.
Something went wrong with that request. Please try again.