Skip to content

Commit

Permalink
Fix failing test (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore authored and SBoudrias committed Apr 12, 2019
1 parent c8faa84 commit 79e89ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"node": ">=8"
},
"scripts": {
"test": "xo && ava --timeout=20s"
"test": "xo && ava --timeout=20s -s"
},
"files": [
"index.js",
Expand Down
4 changes: 2 additions & 2 deletions test/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Control(shouldNotifyInNpmScript) {
const setupTest = isNpmReturnValue => {
['..', 'is-npm'].forEach(clearModule);
process.stdout.isTTY = true;
mock('is-npm', isNpmReturnValue || false);
mock('is-npm', {isNpm: isNpmReturnValue || false});
const updateNotifier = require('..');
util.inherits(Control, updateNotifier.UpdateNotifier);
};
Expand Down Expand Up @@ -70,7 +70,7 @@ test('shouldNotifyInNpmScript should default to false', t => {
t.not(stripAnsi(errorLogs).indexOf('Update available'), -1);
});

test.failing('suppress output when running as npm script', t => {
test('suppress output when running as npm script', t => {
setupTest(true);
const notifier = new Control();
notifier.notify({defer: false});
Expand Down

0 comments on commit 79e89ad

Please sign in to comment.