Skip to content

Commit

Permalink
fix(tests): stub ora.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Sep 9, 2017
1 parent d7dede3 commit 969a035
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/ora.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import debug from 'debug';
import logSymbols from 'log-symbols';
import realOra from 'ora';

const d = debug('electron-forge:lifecycle');
Expand All @@ -15,6 +16,9 @@ export const fakeOra = (name) => {
d('Process Started:', name);
return fake;
},
warn: (msg) => {
console.warn(logSymbols.warning, msg.yellow);
},
fail: () => {
d(`Process Failed: ${name}`.red);
return fake;
Expand Down

0 comments on commit 969a035

Please sign in to comment.