Skip to content

Commit

Permalink
[TESTS] printLogo.js (#75)
Browse files Browse the repository at this point in the history
* add a test that printLogo printed to console

* little nits

* add more tests for utilities.js

* fix tests to reflect new changes
  • Loading branch information
thatkookooguy committed Feb 23, 2017
1 parent e6128bd commit 4955f4f
Show file tree
Hide file tree
Showing 4 changed files with 624 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/printLogo.specs.js
@@ -0,0 +1,18 @@
var stubHelper = require('./stubs/stubHelper');
var expect = require('chai').expect;

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; };

var printLogo = require('../printLogo');
printLogo();

expect(didRun).to.be.true;
});
});
});

0 comments on commit 4955f4f

Please sign in to comment.