burn in hell fake storage
This commit is contained in:
parent
5886af5420
commit
8bc1eb15e4
11 changed files with 34 additions and 185 deletions
|
|
@ -13,12 +13,19 @@ var copayConfig = require('../config');
|
|||
var WalletLock = copay.WalletLock;
|
||||
|
||||
var PrivateKey = copay.PrivateKey;
|
||||
var Storage = require('./mocks/FakeStorage');
|
||||
var localMock = require('./mocks/FakeLocalStorage');
|
||||
var sessionMock = require('./mocks/FakeLocalStorage');
|
||||
var Storage = copay.Storage;
|
||||
|
||||
|
||||
|
||||
var storage;
|
||||
describe('WalletLock model', function() {
|
||||
beforeEach(function() {
|
||||
storage = new Storage();
|
||||
storage = new Storage({
|
||||
storage: localMock,
|
||||
sessionStorage: sessionMock,
|
||||
});
|
||||
});
|
||||
|
||||
it('should fail with missing args', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue