From 6520f8c5e697d7289a5c078d7bd056fc90875d13 Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Mon, 1 Sep 2014 16:54:31 -0300 Subject: [PATCH] Fixes tests --- karma.conf.js | 1 + test/test.WalletFactory.js | 15 --------------- 2 files changed, 1 insertion(+), 15 deletions(-) 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);