@@ -117,8 +117,8 @@ describe('ngModel', function() {
117117 expect ( ctrl . $invalid ) . toBe ( true ) ;
118118
119119 ctrl . $setValidity ( 'third' , undefined ) ;
120- expect ( ctrl . $valid ) . toBe ( undefined ) ;
121- expect ( ctrl . $invalid ) . toBe ( undefined ) ;
120+ expect ( ctrl . $valid ) . toBeUndefined ( ) ;
121+ expect ( ctrl . $invalid ) . toBeUndefined ( ) ;
122122
123123 ctrl . $setValidity ( 'third' , null ) ;
124124 expect ( ctrl . $valid ) . toBe ( false ) ;
@@ -1001,15 +1001,15 @@ describe('ngModel', function() {
10011001
10021002 scope . $apply ( 'value = "123"' ) ;
10031003 expect ( ctrl . $pending ) . toEqual ( { async : true } ) ;
1004- expect ( ctrl . $valid ) . toBe ( undefined ) ;
1005- expect ( ctrl . $invalid ) . toBe ( undefined ) ;
1004+ expect ( ctrl . $valid ) . toBeUndefined ( ) ;
1005+ expect ( ctrl . $invalid ) . toBeUndefined ( ) ;
10061006 expect ( defers . length ) . toBe ( 1 ) ;
10071007 expect ( isObject ( ctrl . $pending ) ) . toBe ( true ) ;
10081008
10091009 scope . $apply ( 'value = "456"' ) ;
10101010 expect ( ctrl . $pending ) . toEqual ( { async : true } ) ;
1011- expect ( ctrl . $valid ) . toBe ( undefined ) ;
1012- expect ( ctrl . $invalid ) . toBe ( undefined ) ;
1011+ expect ( ctrl . $valid ) . toBeUndefined ( ) ;
1012+ expect ( ctrl . $invalid ) . toBeUndefined ( ) ;
10131013 expect ( defers . length ) . toBe ( 2 ) ;
10141014 expect ( isObject ( ctrl . $pending ) ) . toBe ( true ) ;
10151015
@@ -1034,8 +1034,8 @@ describe('ngModel', function() {
10341034 } ;
10351035
10361036 ctrl . $setViewValue ( 'x..y..z' ) ;
1037- expect ( ctrl . $valid ) . toBe ( undefined ) ;
1038- expect ( ctrl . $invalid ) . toBe ( undefined ) ;
1037+ expect ( ctrl . $valid ) . toBeUndefined ( ) ;
1038+ expect ( ctrl . $invalid ) . toBeUndefined ( ) ;
10391039
10401040 failParser = true ;
10411041
@@ -1145,8 +1145,8 @@ describe('ngModel', function() {
11451145 $rootScope . $digest ( ) ;
11461146
11471147 expect ( formCtrl . $pending . usernameAvailability ) . toBeTruthy ( ) ;
1148- expect ( usernameCtrl . $invalid ) . toBe ( undefined ) ;
1149- expect ( formCtrl . $invalid ) . toBe ( undefined ) ;
1148+ expect ( usernameCtrl . $invalid ) . toBeUndefined ( ) ;
1149+ expect ( formCtrl . $invalid ) . toBeUndefined ( ) ;
11501150
11511151 usernameDefer . resolve ( ) ;
11521152 $rootScope . $digest ( ) ;
@@ -1892,7 +1892,7 @@ describe('ngModelOptions attributes', function() {
18921892 '/>' ) ;
18931893
18941894 browserTrigger ( inputElm , 'click' ) ;
1895- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
1895+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
18961896
18971897 browserTrigger ( inputElm , 'blur' ) ;
18981898 expect ( $rootScope . checkbox ) . toBe ( true ) ;
@@ -1980,9 +1980,9 @@ describe('ngModelOptions attributes', function() {
19801980 '/>' ) ;
19811981
19821982 browserTrigger ( inputElm , 'click' ) ;
1983- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
1983+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
19841984 $timeout . flush ( 2000 ) ;
1985- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
1985+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
19861986 $timeout . flush ( 9000 ) ;
19871987 expect ( $rootScope . checkbox ) . toBe ( true ) ;
19881988 } ) ;
@@ -2038,9 +2038,9 @@ describe('ngModelOptions attributes', function() {
20382038 '/>' ) ;
20392039
20402040 helper . changeInputValueTo ( 'a' ) ;
2041- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2041+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
20422042 $timeout . flush ( 6000 ) ;
2043- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2043+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
20442044 $timeout . flush ( 4000 ) ;
20452045 expect ( $rootScope . name ) . toEqual ( 'a' ) ;
20462046 helper . changeInputValueTo ( 'b' ) ;
@@ -2060,9 +2060,9 @@ describe('ngModelOptions attributes', function() {
20602060
20612061 inputElm [ 0 ] . checked = false ;
20622062 browserTrigger ( inputElm , 'click' ) ;
2063- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2063+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
20642064 $timeout . flush ( 8000 ) ;
2065- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2065+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
20662066 $timeout . flush ( 3000 ) ;
20672067 expect ( $rootScope . checkbox ) . toBe ( true ) ;
20682068 inputElm [ 0 ] . checked = true ;
@@ -2083,9 +2083,9 @@ describe('ngModelOptions attributes', function() {
20832083
20842084 inputElm [ 0 ] . checked = false ;
20852085 browserTrigger ( inputElm , 'click' ) ;
2086- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2086+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
20872087 $timeout . flush ( 8000 ) ;
2088- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2088+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
20892089 $timeout . flush ( 3000 ) ;
20902090 expect ( $rootScope . checkbox ) . toBe ( true ) ;
20912091 inputElm [ 0 ] . checked = true ;
@@ -2108,9 +2108,9 @@ describe('ngModelOptions attributes', function() {
21082108 helper . changeGivenInputTo ( inputElm , 'a' ) ;
21092109 expect ( $rootScope . name ) . toEqual ( undefined ) ;
21102110 browserTrigger ( inputElm , 'blur' ) ;
2111- expect ( $rootScope . name ) . toBe ( undefined ) ;
2111+ expect ( $rootScope . name ) . toBeUndefined ( ) ;
21122112 $timeout . flush ( 2000 ) ;
2113- expect ( $rootScope . name ) . toBe ( undefined ) ;
2113+ expect ( $rootScope . name ) . toBeUndefined ( ) ;
21142114 $timeout . flush ( 9000 ) ;
21152115 expect ( $rootScope . name ) . toEqual ( 'a' ) ;
21162116 dealoc ( doc ) ;
0 commit comments