@@ -65,10 +65,9 @@ describe('Docs Annotations', function() {
65
65
66
66
describe ( 'foldout directive' , function ( ) {
67
67
68
- var $scope , parent , element , url , window ;
68
+ var $scope , parent , element , url ;
69
69
beforeEach ( function ( ) {
70
70
module ( function ( $provide , $animateProvider ) {
71
- $provide . value ( '$window' , window = createMockWindow ( ) ) ;
72
71
$animateProvider . register ( '.foldout' , function ( $timeout ) {
73
72
return {
74
73
enter : function ( element , done ) {
@@ -158,17 +157,13 @@ describe('Docs Annotations', function() {
158
157
159
158
describe ( 'DocsController fold' , function ( ) {
160
159
161
- var window , $scope , ctrl ;
160
+ var $scope , ctrl ;
162
161
beforeEach ( function ( ) {
163
- module ( function ( $provide , $animateProvider ) {
164
- $provide . value ( '$window' , window = createMockWindow ( ) ) ;
165
- } ) ;
166
162
inject ( function ( $rootScope , $controller , $location , $cookies , sections ) {
167
163
$scope = $rootScope . $new ( ) ;
168
164
ctrl = $controller ( 'DocsController' , {
169
165
$scope : $scope ,
170
166
$location : $location ,
171
- $window : window ,
172
167
$cookies : $cookies ,
173
168
sections : sections
174
169
} ) ;
0 commit comments