rebased to current master

This commit is contained in:
Matias Alejo Garcia 2014-10-14 15:39:07 -03:00
commit a3d96535cd
2 changed files with 4 additions and 1 deletions

View file

@ -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);

View file

@ -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);
});
});
});