Test fixed
This commit is contained in:
parent
36822dce49
commit
198a39beff
1 changed files with 0 additions and 4 deletions
|
|
@ -246,7 +246,6 @@ describe('Identity model', function() {
|
||||||
args = createIdentity();
|
args = createIdentity();
|
||||||
args.params.noWallets = true;
|
args.params.noWallets = true;
|
||||||
var old = Identity.prototype.createWallet;
|
var old = Identity.prototype.createWallet;
|
||||||
sinon.stub(Identity.prototype, 'store').yields(null);
|
|
||||||
Identity.create(args.params, function(err, res) {
|
Identity.create(args.params, function(err, res) {
|
||||||
iden = res;
|
iden = res;
|
||||||
});
|
});
|
||||||
|
|
@ -303,7 +302,6 @@ describe('Identity model', function() {
|
||||||
args.storage.getItem.onFirstCall().callsArgWith(1, null, '{"wallet": "fakeData"}');
|
args.storage.getItem.onFirstCall().callsArgWith(1, null, '{"wallet": "fakeData"}');
|
||||||
var backup = Wallet.fromUntrustedObj;
|
var backup = Wallet.fromUntrustedObj;
|
||||||
args.params.noWallets = true;
|
args.params.noWallets = true;
|
||||||
sinon.stub(Identity.prototype, 'store').yields(null);
|
|
||||||
sinon.stub().returns(args.wallet);
|
sinon.stub().returns(args.wallet);
|
||||||
|
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|
@ -396,8 +394,6 @@ describe('Identity model', function() {
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
args = createIdentity();
|
args = createIdentity();
|
||||||
args.params.Async = net = sinon.stub();
|
args.params.Async = net = sinon.stub();
|
||||||
|
|
||||||
sinon.stub(Identity.prototype, 'store').yields(null);
|
|
||||||
net.cleanUp = sinon.spy();
|
net.cleanUp = sinon.spy();
|
||||||
net.on = sinon.stub();
|
net.on = sinon.stub();
|
||||||
net.start = sinon.spy();
|
net.start = sinon.spy();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue