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/ScenarioSpec.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/ScenarioSpec.js') diff --git a/test/ScenarioSpec.js b/test/ScenarioSpec.js index 52cfd454..5f83ab93 100644 --- a/test/ScenarioSpec.js +++ b/test/ScenarioSpec.js @@ -1,18 +1,18 @@ 'use strict'; -describe("ScenarioSpec: Compilation", function(){ +describe("ScenarioSpec: Compilation", function() { var scope; - beforeEach(function(){ + beforeEach(function() { scope = null; }); - afterEach(function(){ + afterEach(function() { dealoc(scope); }); - describe('compilation', function(){ - it("should compile dom node and return scope", function(){ + describe('compilation', function() { + it("should compile dom node and return scope", function() { var node = jqLite('
{{b=a+1}}
')[0]; scope = angular.compile(node)(); scope.$digest(); @@ -20,13 +20,13 @@ describe("ScenarioSpec: Compilation", function(){ expect(scope.b).toEqual(2); }); - it("should compile jQuery node and return scope", function(){ + it("should compile jQuery node and return scope", function() { scope = compile(jqLite('
{{a=123}}
'))(); scope.$digest(); expect(jqLite(scope.$element).text()).toEqual('123'); }); - it("should compile text node and return scope", function(){ + it("should compile text node and return scope", function() { scope = angular.compile('
{{a=123}}
')(); scope.$digest(); expect(jqLite(scope.$element).text()).toEqual('123'); -- cgit v1.2.3