mirror of https://github.com/BTCPrivate/copay.git
fix version notification test
This commit is contained in:
parent
f964467c01
commit
87e1dddde9
|
@ -261,13 +261,14 @@ describe("Unit: Controllers", function() {
|
||||||
$httpBackend.flush();
|
$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);
|
$httpBackend.expectGET(GH);
|
||||||
scope.$apply();
|
scope.$apply();
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
expect(scope.updateVersion.class).equal('error');
|
spy.calledOnce.should.equal(true);
|
||||||
expect(scope.updateVersion.version).equal('v100.1.6');
|
}));
|
||||||
});
|
|
||||||
|
|
||||||
it('should check blockChainStatus', function() {
|
it('should check blockChainStatus', function() {
|
||||||
$httpBackend.expectGET(GH);
|
$httpBackend.expectGET(GH);
|
||||||
|
|
Loading…
Reference in New Issue