Skip to content
Permalink
Browse files

test($$isDocumentHidden): really fix jasmine syntax

  • Loading branch information
Narretz committed May 6, 2016
1 parent bf1acf7 commit d3e123b0a6f1281902f09dfeb46d3df64a19ee7b
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/ng/documentSpec.js
@@ -38,8 +38,8 @@ describe('$$isDocumentHidden', function() {
var spy = spyOn(document, 'addEventListener').andCallThrough();

inject(function($$isDocumentHidden, $document) {
expect(spy.mostRecentCall().args[0]).toBe('visibilitychange');
expect(spy.mostRecentCall().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.mostRecentCall().args[0]).toBe('visibilitychange');
expect(spy.mostRecentCall().args[1]).toEqual(jasmine.any(Function));
expect(spy.mostRecentCall.args[0]).toBe('visibilitychange');
expect(spy.mostRecentCall.args[1]).toEqual(jasmine.any(Function));
});
});
});

0 comments on commit d3e123b

Please sign in to comment.
You can’t perform that action at this time.