rebased to current master
This commit is contained in:
parent
8b45d132a2
commit
a3d96535cd
2 changed files with 4 additions and 1 deletions
|
|
@ -235,6 +235,7 @@ describe('Identity model', function() {
|
|||
storage.getFirst = sinon.stub().yields(null, 'wallet1234');
|
||||
|
||||
var wallet = sinon.stub();
|
||||
wallet.netStart = sinon.stub();
|
||||
wallet.store = sinon.stub().yields(null);
|
||||
|
||||
Identity._walletRead = sinon.stub().callsArgWith(2, null, wallet);
|
||||
|
|
|
|||
|
|
@ -112,10 +112,12 @@ describe('Profile model', function() {
|
|||
it('should list wallets in order', function(done) {
|
||||
var p = new Profile(opts, storage);
|
||||
p.addWallet('123', {}, function(err) {
|
||||
setTimeout(function() {
|
||||
p.addWallet('234', {}, function(err) {
|
||||
_.pluck(p.listWallets(), 'id').should.deep.equal(['123', '234']);
|
||||
_.pluck(p.listWallets(), 'id').should.deep.equal(['234', '123']);
|
||||
done();
|
||||
})
|
||||
},10);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue