From 4b4292edb86d34067a2babb9f572a3641dd1d2a7 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 1 Sep 2011 16:16:01 +0200 Subject: style: fix some missing semi-colons and spaces, typos --- test/directivesSpec.js | 48 +++++++++++++++++++++++----------------------- test/markupSpec.js | 2 +- test/service/localeSpec.js | 3 +-- test/service/routeSpec.js | 30 +++++++++++++++-------------- 4 files changed, 42 insertions(+), 41 deletions(-) (limited to 'test') diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 314f9a88..2979cf75 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -1,6 +1,6 @@ 'use strict'; -describe("directive", function(){ +describe("directive", function() { var compile, model, element; @@ -20,7 +20,7 @@ describe("directive", function(){ expect(scope.a).toEqual(123); }); - describe('ng:bind', function(){ + describe('ng:bind', function() { it('should set text', function() { var scope = compile('
'); expect(element.text()).toEqual(''); @@ -74,7 +74,7 @@ describe("directive", function(){ }); - it('should suppress rendering of falsy values', function(){ + it('should suppress rendering of falsy values', function() { var scope = compile('
{{ null }}{{ undefined }}{{ "" }}-{{ 0 }}{{ false }}
'); scope.$digest(); expect(scope.$element.text()).toEqual('-0false'); @@ -82,7 +82,7 @@ describe("directive", function(){ }); - describe('ng:bind-template', function(){ + describe('ng:bind-template', function() { it('should ng:bind-template', function() { var scope = compile('
'); scope.name = 'Misko'; @@ -91,9 +91,9 @@ describe("directive", function(){ expect(element.text()).toEqual('Hello Misko!'); }); - it('should have $element set to current bind element', function(){ + it('should have $element set to current bind element', function() { var innerText; - angularFilter.myFilter = function(text){ + angularFilter.myFilter = function(text) { innerText = innerText || this.$element.text(); return text; }; @@ -105,22 +105,22 @@ describe("directive", function(){ }); - describe('ng:bind-attr', function(){ - it('should bind attributes', function(){ + describe('ng:bind-attr', function() { + it('should bind attributes', function() { var scope = compile('
'); scope.$digest(); expect(element.attr('src')).toEqual('http://localhost/mysrc'); expect(element.attr('alt')).toEqual('myalt'); }); - it('should not pretty print JSON in attributes', function(){ + it('should not pretty print JSON in attributes', function() { var scope = compile('{{ {a:1} }}'); scope.$digest(); expect(element.attr('alt')).toEqual('{"a":1}'); }); }); - it('should remove special attributes on false', function(){ + it('should remove special attributes on false', function() { var scope = compile(''); var input = scope.$element[0]; expect(input.disabled).toEqual(false); @@ -138,7 +138,7 @@ describe("directive", function(){ }); describe('ng:click', function(){ - it('should get called on a click', function(){ + it('should get called on a click', function() { var scope = compile('
'); scope.$digest(); expect(scope.clicked).toBeFalsy(); @@ -296,7 +296,7 @@ describe("directive", function(){ }); - it('should ng:class odd/even', function(){ + it('should ng:class odd/even', function() { var scope = compile('