mirror of https://github.com/BTCPrivate/copay.git
fix tests
This commit is contained in:
parent
7578758e17
commit
89562e9612
|
@ -121,14 +121,15 @@ describe('Identity model', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Identity.create()', function() {
|
describe('Identity.create()', function() {
|
||||||
it('should create', function() {
|
it('should create and store identity', function() {
|
||||||
var args = createIdentity();
|
var args = createIdentity();
|
||||||
args.blockchain.on = sinon.stub();
|
args.blockchain.on = sinon.stub();
|
||||||
var old = Identity.prototype.createWallet;
|
sinon.stub(Identity.prototype, 'store').yields(null);
|
||||||
Identity.create(args.params, function(err, iden) {
|
Identity.create(args.params, function(err, iden) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.exist(iden);
|
should.exist(iden);
|
||||||
should.exist(iden.wallets);
|
should.exist(iden.wallets);
|
||||||
|
Identity.prototype.store.calledOnce.should.be.true;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue