fixed test seed data
This commit is contained in:
parent
bd0ddf5c8c
commit
ec2c45ac2e
3 changed files with 4 additions and 2 deletions
|
|
@ -125,7 +125,6 @@ angular.module('copayApp.controllers').controller('JoinController',
|
||||||
privateHex: $scope.private,
|
privateHex: $scope.private,
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
console.log(err);
|
|
||||||
if (err) {
|
if (err) {
|
||||||
if (err === 'joinError')
|
if (err === 'joinError')
|
||||||
notification.error('Fatal error connecting to Insight server');
|
notification.error('Fatal error connecting to Insight server');
|
||||||
|
|
|
||||||
|
|
@ -576,6 +576,8 @@ Identity.prototype.createWallet = function(opts, cb) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var w = new walletClass(opts);
|
var w = new walletClass(opts);
|
||||||
|
|
||||||
|
console.log(_.keys(self.wallets));
|
||||||
|
console.log(w.getId());
|
||||||
if (_.contains(_.keys(self.wallets), w.getId())) {
|
if (_.contains(_.keys(self.wallets), w.getId())) {
|
||||||
return cb('walletAlreadyExists');
|
return cb('walletAlreadyExists');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,9 +77,10 @@ describe('Identity model', function() {
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var wid = 0;
|
||||||
function getNewWallet(args) {
|
function getNewWallet(args) {
|
||||||
var w = sinon.stub();
|
var w = sinon.stub();
|
||||||
w.getId = sinon.stub().returns('wid');
|
w.getId = sinon.stub().returns('wid' + (++wid));
|
||||||
w.getStorageKey = sinon.stub().returns('wkey');
|
w.getStorageKey = sinon.stub().returns('wkey');
|
||||||
w.toObj = sinon.stub().returns({
|
w.toObj = sinon.stub().returns({
|
||||||
obj: 1
|
obj: 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue