diff --git a/test/printLogo.specs.js b/test/printLogo.specs.js index 05a1bbdc..4991963f 100644 --- a/test/printLogo.specs.js +++ b/test/printLogo.specs.js @@ -6,9 +6,9 @@ describe('printLogo', function() { it('should print logo if called to console log', function() { stubHelper(function() { var didRun = false; + // mock console before requiring printLogo console.log = function() { didRun = true; }; - // run the file var printLogo = require('../printLogo'); printLogo();