From 96bbf729ddb246f46e5fde7bb105a28e0cfde54b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 14 Aug 2013 12:02:28 -0700 Subject: test(docs): don't mock out window unnecessarily --- docs/component-spec/annotationsSpec.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'docs/component-spec/annotationsSpec.js') diff --git a/docs/component-spec/annotationsSpec.js b/docs/component-spec/annotationsSpec.js index edc458cd..6dcde906 100644 --- a/docs/component-spec/annotationsSpec.js +++ b/docs/component-spec/annotationsSpec.js @@ -65,10 +65,9 @@ describe('Docs Annotations', function() { describe('foldout directive', function() { - var $scope, parent, element, url, window; + var $scope, parent, element, url; beforeEach(function() { module(function($provide, $animateProvider) { - $provide.value('$window', window = createMockWindow()); $animateProvider.register('.foldout', function($timeout) { return { enter : function(element, done) { @@ -158,17 +157,13 @@ describe('Docs Annotations', function() { describe('DocsController fold', function() { - var window, $scope, ctrl; + var $scope, ctrl; beforeEach(function() { - module(function($provide, $animateProvider) { - $provide.value('$window', window = createMockWindow()); - }); inject(function($rootScope, $controller, $location, $cookies, sections) { $scope = $rootScope.$new(); ctrl = $controller('DocsController',{ $scope : $scope, $location : $location, - $window : window, $cookies : $cookies, sections : sections }); -- cgit v1.2.3