aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScenarioSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-10-07 11:27:49 -0700
committerIgor Minar2011-10-11 11:01:46 -0700
commitfd822bdaf9d04e522aaa5400b673f333190abe98 (patch)
tree451cd26d3f7da862692d6c56e6e8f235824c180a /test/ScenarioSpec.js
parent4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff)
downloadangular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2
chore(formating): clean code to be function() {
Diffstat (limited to 'test/ScenarioSpec.js')
-rw-r--r--test/ScenarioSpec.js14
1 files changed, 7 insertions, 7 deletions
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('<div ng:init="a=1">{{b=a+1}}</div>')[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('<div>{{a=123}}</div>'))();
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('<div>{{a=123}}</div>')();
scope.$digest();
expect(jqLite(scope.$element).text()).toEqual('123');