From 87e1dddde97f11c3765573f9c731195f5e8f62b6 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 27 Jun 2014 15:42:08 -0300 Subject: [PATCH] fix version notification test --- test/unit/controllers/controllersSpec.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/unit/controllers/controllersSpec.js b/test/unit/controllers/controllersSpec.js index fc6da0350..8525dc782 100644 --- a/test/unit/controllers/controllersSpec.js +++ b/test/unit/controllers/controllersSpec.js @@ -261,13 +261,14 @@ describe("Unit: Controllers", function() { $httpBackend.flush(); }); - it('should check version ', function() { + it('should check version ', inject(function($injector) { + notification = $injector.get('notification'); + var spy = sinon.spy(notification, 'version'); $httpBackend.expectGET(GH); scope.$apply(); $httpBackend.flush(); - expect(scope.updateVersion.class).equal('error'); - expect(scope.updateVersion.version).equal('v100.1.6'); - }); + spy.calledOnce.should.equal(true); + })); it('should check blockChainStatus', function() { $httpBackend.expectGET(GH);