@@ -65,10 +65,9 @@ describe('Docs Annotations', function() {
6565
6666 describe ( 'foldout directive' , function ( ) {
6767
68- var $scope , parent , element , url , window ;
68+ var $scope , parent , element , url ;
6969 beforeEach ( function ( ) {
7070 module ( function ( $provide , $animateProvider ) {
71- $provide . value ( '$window' , window = createMockWindow ( ) ) ;
7271 $animateProvider . register ( '.foldout' , function ( $timeout ) {
7372 return {
7473 enter : function ( element , done ) {
@@ -158,17 +157,13 @@ describe('Docs Annotations', function() {
158157
159158 describe ( 'DocsController fold' , function ( ) {
160159
161- var window , $scope , ctrl ;
160+ var $scope , ctrl ;
162161 beforeEach ( function ( ) {
163- module ( function ( $provide , $animateProvider ) {
164- $provide . value ( '$window' , window = createMockWindow ( ) ) ;
165- } ) ;
166162 inject ( function ( $rootScope , $controller , $location , $cookies , sections ) {
167163 $scope = $rootScope . $new ( ) ;
168164 ctrl = $controller ( 'DocsController' , {
169165 $scope : $scope ,
170166 $location : $location ,
171- $window : window ,
172167 $cookies : $cookies ,
173168 sections : sections
174169 } ) ;
0 commit comments