Skip to content
Permalink
Browse files

fix(tests): stub ora.warn

  • Loading branch information
malept committed Sep 9, 2017
1 parent d7dede3 commit 969a03593a839efdc4c0df2138098ace35a2ed8e
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/util/ora.js
@@ -1,4 +1,5 @@
import debug from 'debug';
import logSymbols from 'log-symbols';
import realOra from 'ora';

const d = debug('electron-forge:lifecycle');
@@ -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;

0 comments on commit 969a035

Please sign in to comment.
You can’t perform that action at this time.