diff --git a/karma.conf.js b/karma.conf.js index 69fb2faf4..7f1715ce4 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -42,6 +42,7 @@ module.exports = function(config) { //App-specific Code 'js/app.js', + 'js/log.js', 'js/routes.js', 'js/services/*.js', 'js/directives.js', diff --git a/test/test.WalletFactory.js b/test/test.WalletFactory.js index 7e69bd2dc..7a3189fea 100644 --- a/test/test.WalletFactory.js +++ b/test/test.WalletFactory.js @@ -113,21 +113,6 @@ describe('WalletFactory model', function() { wf.version.should.equal('0.0.1'); }); - it('should log', function() { - var c2 = JSON.parse(JSON.stringify(config)); - c2.verbose = 1; - c2.Storage = FakeStorage; - var wf = new WalletFactory(c2, '0.0.1'); - var save_console_log = console.log; - console.log = function() {}; - var spy = sinon.spy(console, 'log'); - wf.log('ok'); - sinon.assert.callCount(spy, 1); - spy.getCall(0).args[0].should.equal('ok'); - console.log = save_console_log; - }); - - it('#_checkRead should return false', function() { var wf = new WalletFactory(config); wf._checkRead('dummy').should.equal(false);