Skip to content

Commit

Permalink
Upgrade: Update async-done and dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman authored and phated committed Jun 25, 2016
1 parent 6c5fccf commit c475690
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
"lint": "jshint test index.js --reporter node_modules/jshint-stylish/stylish.js --exclude node_modules"
},
"dependencies": {
"async-done": "^0.4.0"
"async-done": "^1.1.1"
},
"devDependencies": {
"jshint": "^2.5.5",
"jshint-stylish": "^0.4.0",
"lab": "^4.2.0"
"code": "^1.5.0",
"jshint": "^2.8.0",
"jshint-stylish": "^2.0.1",
"lab": "^6.2.0"
},
"keywords": [
"settle",
Expand Down
14 changes: 9 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var before = lab.before;
var beforeEach = lab.beforeEach;
var after = lab.after;
var afterEach = lab.afterEach;
var expect = require('lab').expect;
var expect = require('code').expect;

var settle = require('../');

Expand All @@ -18,8 +18,10 @@ describe('asyncSettle', function(){
settle(function(done){
done(null, val);
}, function(err, result){
expect(result).to.have.property('state', 'success');
expect(result).to.have.property('value', val);
expect(result).to.include({
state: 'success',
value: val
});
done(err);
});
});
Expand All @@ -29,8 +31,10 @@ describe('asyncSettle', function(){
settle(function(done){
done(error);
}, function(err, result){
expect(result).to.have.property('state', 'error');
expect(result).to.have.property('value', error);
expect(result).to.include({
state: 'error',
value: error
});
done(err);
});
});
Expand Down

0 comments on commit c475690

Please # to comment.