Files
angular.js/test/ng/windowSpec.js
Shahar Talmi 45252c3a54 fix($sce): use msie instead of $document[0].documentMode
this is important so that people can mock $window without having to add stuff that angular uses internally into it

Closes #9661
2014-10-17 22:35:31 +03:00

13 lines
287 B
JavaScript

'use strict';
describe('$window', function() {
it("should inject $window", inject(function($window) {
expect($window).toBe(window);
}));
it('should be able to mock $window without errors', function() {
module({$window: {}});
inject(['$sce', angular.noop]);
});
});