identity now emits!

This commit is contained in:
Matias Alejo Garcia 2014-11-30 00:31:17 -03:00
commit 3ae6378678
33 changed files with 376 additions and 346 deletions

View file

@ -524,14 +524,14 @@ describe('Wallet model', function() {
it('#isReady', function() {
it('#isComplete', function() {
var w = createW();
w.publicKeyRing.isComplete().should.equal(false);
w.isReady().should.equal(false);
w.isComplete().should.equal(false);
var w2 = createW2();
w2.publicKeyRing.isComplete().should.equal(true);
w2.isReady().should.equal(true);
w2.isComplete().should.equal(true);
});
it('handle network indexes correctly', function() {
@ -2497,7 +2497,7 @@ describe('Wallet model', function() {
blockchainOpts: {},
}, function(err, w) {
should.exist(w);
w.isReady().should.equal(true);
w.isComplete().should.equal(true);
var wo = w.toObj();
wo.opts.id.should.equal('48ba2f1ffdfe9708');
wo.opts.spendUnconfirmed.should.equal(true);

View file

@ -50,7 +50,7 @@ describe("Unit: Controllers", function() {
var w = {};
w.id = 1234;
w.isReady = sinon.stub().returns(true);
w.isComplete = sinon.stub().returns(true);
w.privateKey = {};
w.settings = {
unitToSatoshi: 100,

View file

@ -10,7 +10,7 @@ describe("Unit: Testing Directives", function() {
beforeEach(inject(function($rootScope) {
var w = {};
w.isReady = sinon.stub().returns(true);
w.isComplete = sinon.stub().returns(true);
w.privateKey = {};
w.settings = {
unitToSatoshi: 100,

View file

@ -9,7 +9,7 @@ describe('Angular Filters', function() {
beforeEach(inject(function($rootScope) {
var w = {};
w.isReady = sinon.stub().returns(true);
w.isComplete = sinon.stub().returns(true);
w.privateKey = {};
w.settings = {
unitToSatoshi: 100,

View file

@ -26,7 +26,7 @@ describe("Angular services", function() {
beforeEach(inject(function($rootScope) {
var w = {};
w.isReady = sinon.stub().returns(true);
w.isComplete = sinon.stub().returns(true);
w.privateKey = {};
w.settings = {
unitToSatoshi: 100,