From 5886af5420cac7f70d0d8d57a0904aa7f47bd176 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Wed, 17 Sep 2014 08:58:23 -0300 Subject: [PATCH] WIP karma tests --- test/test.Storage.js | 2 +- test/test.WalletFactory.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.Storage.js b/test/test.Storage.js index 170235f13..5a3032030 100644 --- a/test/test.Storage.js +++ b/test/test.Storage.js @@ -25,7 +25,7 @@ describe('Storage model', function() { }); should.exist(s2); }); - it('should fail when encrypting without a password', function() { + it.only('should fail when encrypting without a password', function() { var s2 = new Storage({ storage: localMock, diff --git a/test/test.WalletFactory.js b/test/test.WalletFactory.js index 55f5239f6..517bf44bd 100644 --- a/test/test.WalletFactory.js +++ b/test/test.WalletFactory.js @@ -16,7 +16,7 @@ var mockLocalStorage = require('./mocks/FakeLocalStorage'); var mockSessionStorage = require('./mocks/FakeLocalStorage'); -var PERSISTED_PROPERTIES = require('../js/models/core/Wallet').PERSISTED_PROPERTIES; +var PERSISTED_PROPERTIES = (copay.Wallet || require('../js/models/core/Wallet')).PERSISTED_PROPERTIES; function assertObjectEqual(a, b) { PERSISTED_PROPERTIES.forEach(function(k) {