test($): fix jasmine syntax
This commit is contained in:
@@ -38,8 +38,8 @@ describe('$$isDocumentHidden', function() {
|
||||
var spy = spyOn(document, 'addEventListener').andCallThrough();
|
||||
|
||||
inject(function($$isDocumentHidden, $document) {
|
||||
expect(spy.calls.mostRecent.args[0]).toBe('visibilitychange');
|
||||
expect(spy.calls.mostRecent.args[1]).toEqual(jasmine.any(Function));
|
||||
expect(spy.mostRecentCall().args[0]).toBe('visibilitychange');
|
||||
expect(spy.mostRecentCall().args[1]).toEqual(jasmine.any(Function));
|
||||
expect($$isDocumentHidden()).toBeFalsy(); // undefined in browsers that don't support visibility
|
||||
});
|
||||
|
||||
@@ -50,8 +50,8 @@ describe('$$isDocumentHidden', function() {
|
||||
|
||||
inject(function($$isDocumentHidden, $rootScope) {
|
||||
$rootScope.$destroy();
|
||||
expect(spy.calls.mostRecent.args[0]).toBe('visibilitychange');
|
||||
expect(spy.calls.mostRecent.args[1]).toEqual(jasmine.any(Function));
|
||||
expect(spy.mostRecentCall().args[0]).toBe('visibilitychange');
|
||||
expect(spy.mostRecentCall().args[1]).toEqual(jasmine.any(Function));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user