aboutsummaryrefslogtreecommitdiffstats
path: root/test/directive/selectSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-13 00:29:10 -0700
committerIgor Minar2012-03-13 14:13:53 -0700
commit9277d12fc0052efacbeed7cf9aaeea608e5f6108 (patch)
tree1ce943dfaa5feb3626f1e0d8f7c1cd3b7f929744 /test/directive/selectSpec.js
parentac5151a469667b1cc1b5e2f96d330b71631efd0b (diff)
downloadangular.js-9277d12fc0052efacbeed7cf9aaeea608e5f6108.tar.bz2
fix(forms): lowercase all validation error keys
Diffstat (limited to 'test/directive/selectSpec.js')
-rw-r--r--test/directive/selectSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/directive/selectSpec.js b/test/directive/selectSpec.js
index c6cfa377..e374fbe1 100644
--- a/test/directive/selectSpec.js
+++ b/test/directive/selectSpec.js
@@ -55,7 +55,7 @@ describe('select', function() {
scope.selection = 'c';
});
- expect(scope.form.select.$error.REQUIRED).toBeFalsy();
+ expect(scope.form.select.$error.required).toBeFalsy();
expect(element).toBeValid();
expect(element).toBePristine();
@@ -63,7 +63,7 @@ describe('select', function() {
scope.selection = '';
});
- expect(scope.form.select.$error.REQUIRED).toBeTruthy();
+ expect(scope.form.select.$error.required).toBeTruthy();
expect(element).toBeInvalid();
expect(element).toBePristine();
expect(scope.log).toEqual('');
@@ -117,7 +117,7 @@ describe('select', function() {
scope.selection = [];
});
- expect(scope.form.select.$error.REQUIRED).toBeTruthy();
+ expect(scope.form.select.$error.required).toBeTruthy();
expect(element).toBeInvalid();
expect(element).toBePristine();