Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 13, 2017
1 parent 01fcd25 commit f1de1bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -75,7 +75,7 @@ UpdateNotifier.prototype.check = function () {
this.update = this.config.get('update');

if (this.update) {
this.config.del('update');
this.config.delete('update');
}

// Only check for updates on a set interval
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -35,12 +35,12 @@
"dependencies": {
"boxen": "^1.0.0",
"chalk": "^1.0.0",
"configstore": "^2.0.0",
"configstore": "^3.0.0",
"is-npm": "^1.0.0",
"latest-version": "^2.0.0",
"latest-version": "^3.0.0",
"lazy-req": "^2.0.0",
"semver-diff": "^2.0.0",
"xdg-basedir": "^2.0.0"
"xdg-basedir": "^3.0.0"
},
"devDependencies": {
"clear-require": "^2.0.0",
Expand Down
11 changes: 6 additions & 5 deletions test.js
Expand Up @@ -61,11 +61,12 @@ describe('updateNotifier with fs error', function () {
});

it('should fail gracefully', function () {
// basically should not blow up, but config should be undefined
assert.ifError(updateNotifier({
packageName: 'npme',
packageVersion: '3.7.0'
}).config);
assert.doesNotThrow(function () {
updateNotifier({
packageName: 'npme',
packageVersion: '3.7.0'
});
});
});
});

Expand Down

0 comments on commit f1de1bf

Please sign in to comment.