From fd822bdaf9d04e522aaa5400b673f333190abe98 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 7 Oct 2011 11:27:49 -0700 Subject: chore(formating): clean code to be function() { --- test/service/cookiesSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/service/cookiesSpec.js') diff --git a/test/service/cookiesSpec.js b/test/service/cookiesSpec.js index 782cee72..f078c20c 100644 --- a/test/service/cookiesSpec.js +++ b/test/service/cookiesSpec.js @@ -10,13 +10,13 @@ describe('$cookies', function() { scope.$cookies = scope.$service('$cookies'); }); - afterEach(function(){ + afterEach(function() { dealoc(scope); }); it('should provide access to existing cookies via object properties and keep them in sync', - function(){ + function() { expect(scope.$cookies).toEqual({'preexisting': 'oldCookie'}); // access internal cookie storage of the browser mock directly to simulate behavior of @@ -55,7 +55,7 @@ describe('$cookies', function() { scope.$cookies.nonString = [1, 2, 3]; scope.$cookies.nullVal = null; scope.$cookies.undefVal = undefined; - scope.$cookies.preexisting = function(){}; + scope.$cookies.preexisting = function() {}; scope.$digest(); expect($browser.cookies()).toEqual({'preexisting': 'oldCookie'}); expect(scope.$cookies).toEqual({'preexisting': 'oldCookie'}); -- cgit v1.2.3