Skip to content

Commit

Permalink
updating mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinohara80 committed Aug 4, 2015
1 parent c820877 commit 320662d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -36,7 +36,7 @@
"gulp-jshint": "^1.9.0",
"jade": "1.3.1",
"jshint-stylish": "^1.0.0",
"mocha": "1.18.2",
"mocha": "^2.2.5",
"run-sequence": "^1.0.2",
"should": "3.3.1"
},
Expand Down
6 changes: 5 additions & 1 deletion test/mock/sfdc-rest-api.js
Expand Up @@ -67,7 +67,11 @@ module.exports.start = function(port, cb) {
});
});

server.listen(port, cb);
server.listen(port, function(err){
if(err) return cb(err);
console.log('started server');
cb();
});
}

// return an example client
Expand Down
4 changes: 4 additions & 0 deletions test/promises.js
Expand Up @@ -160,6 +160,10 @@ describe('promises', function() {

});

// reset the lastRequest
afterEach(function() {
api.reset();
});

after(function(done) {
api.stop(done);
Expand Down

0 comments on commit 320662d

Please sign in to comment.