fix tests
This commit is contained in:
parent
f15096b428
commit
a1eca63de4
4 changed files with 21 additions and 1 deletions
|
|
@ -117,6 +117,7 @@ describe('createController', function() {
|
|||
it('should create a 1-1 wallet from mnemonic', function(done) {
|
||||
var fakeForm = {};
|
||||
|
||||
console.log('[create.test.js.119]'); //TODO
|
||||
// FROM DATA
|
||||
scope.seedSource = {
|
||||
id: 'set'
|
||||
|
|
@ -131,8 +132,12 @@ describe('createController', function() {
|
|||
scope._walletPrivKey = 'Kz4CFSTgLzoYfMkt97BTBotUbZYXjMts6Ej9HbVfCf5oLmun1BXy';
|
||||
|
||||
ctrl.setSeedSource();
|
||||
|
||||
console.log('[create.test.js.135]'); //TODO
|
||||
ctrl.create(fakeForm);
|
||||
|
||||
console.log('[create.test.js.138]'); //TODO
|
||||
|
||||
should.not.exist(ctrl.error);
|
||||
mocks.go.walletHome.calledOnce.should.equal(true);
|
||||
//
|
||||
|
|
|
|||
|
|
@ -74,7 +74,8 @@ describe('disclaimerController', function() {
|
|||
mnemonic: 'tunnel fork scare industry noble snow tank bullet over gesture nuclear next',
|
||||
});
|
||||
setTimeout(function() {
|
||||
ctrl.creatingProfile.should.equal(false);
|
||||
mocks.ongoingProcess.set.getCall(1).args[0].should.equal('creatingWallet');
|
||||
mocks.ongoingProcess.set.getCall(1).args[1].should.equal(false);
|
||||
done();
|
||||
}, 100);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue