' +
@@ -366,7 +366,7 @@ describe('widget: input', function(){
});
- it('should honor model over html checked keyword after', function(){
+ it('should honor model over html checked keyword after', function() {
compile('
' +
'
' +
'
' +
@@ -380,7 +380,7 @@ describe('widget: input', function(){
});
- it('should honor model over html checked keyword before', function(){
+ it('should honor model over html checked keyword before', function() {
compile('
' +
'' +
'' +
@@ -395,22 +395,22 @@ describe('widget: input', function(){
});
- it('should ignore text widget which have no name', function(){
+ it('should ignore text widget which have no name', function() {
compile('');
expect(scope.$element.attr('ng-exception')).toBeFalsy();
expect(scope.$element.hasClass('ng-exception')).toBeFalsy();
});
- it('should ignore checkbox widget which have no name', function(){
+ it('should ignore checkbox widget which have no name', function() {
compile('');
expect(scope.$element.attr('ng-exception')).toBeFalsy();
expect(scope.$element.hasClass('ng-exception')).toBeFalsy();
});
- it('should report error on assignment error', function(){
- expect(function(){
+ it('should report error on assignment error', function() {
+ expect(function() {
compile('');
}).toThrow("Syntax Error: Token '''' is an unexpected token at column 7 of the expression [throw ''] starting at [''].");
$logMock.error.logs.shift();
@@ -418,8 +418,8 @@ describe('widget: input', function(){
});
- describe('scope declaration', function(){
- it('should read the declaration from scope', function(){
+ describe('scope declaration', function() {
+ it('should read the declaration from scope', function() {
var input, $formFactory;
element = angular.element('');
scope = angular.scope();
@@ -451,18 +451,18 @@ describe('widget: input', function(){
});
- describe('text subtypes', function(){
+ describe('text subtypes', function() {
function itShouldVerify(type, validList, invalidList, params, fn) {
- describe(type, function(){
+ describe(type, function() {
forEach(validList, function(value){
- it('should validate "' + value + '"', function(){
+ it('should validate "' + value + '"', function() {
setup(value);
expect(scope.$element).toBeValid();
});
});
forEach(invalidList, function(value){
- it('should NOT validate "' + value + '"', function(){
+ it('should NOT validate "' + value + '"', function() {
setup(value);
expect(scope.$element).toBeInvalid();
});
diff --git a/test/widget/selectSpec.js b/test/widget/selectSpec.js
index 6adf8b93..ad9dab18 100644
--- a/test/widget/selectSpec.js
+++ b/test/widget/selectSpec.js
@@ -1,6 +1,6 @@
'use strict';
-describe('select', function(){
+describe('select', function() {
var compile = null, element = null, scope = null, $formFactory = null;
beforeEach(function() {
@@ -20,12 +20,12 @@ describe('select', function(){
};
});
- afterEach(function(){
+ afterEach(function() {
dealoc(element);
});
- describe('select-one', function(){
+ describe('select-one', function() {
it('should compile children of a select without a name, but not create a model for it',
function() {
@@ -41,7 +41,7 @@ describe('select', function(){
expect(scope.$element.text()).toBe('foobarC');
});
- it('should require', function(){
+ it('should require', function() {
compile('