Fixes: tests. Added karma and mocha tests.

This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-07 20:07:41 -03:00
commit 8ad1fa7b02
7 changed files with 40 additions and 9 deletions

View file

@ -1022,6 +1022,14 @@ describe('Wallet model', function() {
w.netStart();
w.network.start.getCall(0).args[0].privkey.length.should.equal(64);
});
it('should check if wallet is already opened', function() {
var w = createW();
w._checkLocked();
w.isLocked.should.equal(false);
w._checkLocked();
w.isLocked.should.equal(true);
});
});
describe('#forceNetwork in config', function() {