mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
this is important so that people can mock $window without having to add stuff that angular uses internally into it Closes #9661
13 lines
287 B
JavaScript
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]);
|
|
});
|
|
});
|