From 2a94b14852155904087c79bb38c162b4ff4fa37a Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Tue, 3 Jun 2014 10:57:01 -0300 Subject: [PATCH] Test for check if there are wallets on localStorage --- test/unit/controllers/controllersSpec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unit/controllers/controllersSpec.js b/test/unit/controllers/controllersSpec.js index 6554e692d..12502bd8a 100644 --- a/test/unit/controllers/controllersSpec.js +++ b/test/unit/controllers/controllersSpec.js @@ -33,4 +33,9 @@ describe("Unit: Testing Controllers", function() { expect(copayApp.TransactionsController).not.to.equal(null); }); + beforeEach(angular.mock.module('copay.walletFactory')); + it('should display a link to create a new wallet if no wallets in localStorage', inject(function(walletFactory) { + expect(walletFactory.storage.getWalletIds()).to.be.empty; + })); + });