mirror of https://github.com/BTCPrivate/copay.git
Test for check if there are wallets on localStorage
This commit is contained in:
parent
fd33385536
commit
2a94b14852
|
@ -33,4 +33,9 @@ describe("Unit: Testing Controllers", function() {
|
||||||
expect(copayApp.TransactionsController).not.to.equal(null);
|
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;
|
||||||
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue