@@ -117,8 +117,8 @@ describe('ngModel', function() {
117
117
expect ( ctrl . $invalid ) . toBe ( true ) ;
118
118
119
119
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 ( ) ;
122
122
123
123
ctrl . $setValidity ( 'third' , null ) ;
124
124
expect ( ctrl . $valid ) . toBe ( false ) ;
@@ -1001,15 +1001,15 @@ describe('ngModel', function() {
1001
1001
1002
1002
scope . $apply ( 'value = "123"' ) ;
1003
1003
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 ( ) ;
1006
1006
expect ( defers . length ) . toBe ( 1 ) ;
1007
1007
expect ( isObject ( ctrl . $pending ) ) . toBe ( true ) ;
1008
1008
1009
1009
scope . $apply ( 'value = "456"' ) ;
1010
1010
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 ( ) ;
1013
1013
expect ( defers . length ) . toBe ( 2 ) ;
1014
1014
expect ( isObject ( ctrl . $pending ) ) . toBe ( true ) ;
1015
1015
@@ -1034,8 +1034,8 @@ describe('ngModel', function() {
1034
1034
} ;
1035
1035
1036
1036
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 ( ) ;
1039
1039
1040
1040
failParser = true ;
1041
1041
@@ -1145,8 +1145,8 @@ describe('ngModel', function() {
1145
1145
$rootScope . $digest ( ) ;
1146
1146
1147
1147
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 ( ) ;
1150
1150
1151
1151
usernameDefer . resolve ( ) ;
1152
1152
$rootScope . $digest ( ) ;
@@ -1892,7 +1892,7 @@ describe('ngModelOptions attributes', function() {
1892
1892
'/>' ) ;
1893
1893
1894
1894
browserTrigger ( inputElm , 'click' ) ;
1895
- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
1895
+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
1896
1896
1897
1897
browserTrigger ( inputElm , 'blur' ) ;
1898
1898
expect ( $rootScope . checkbox ) . toBe ( true ) ;
@@ -1980,9 +1980,9 @@ describe('ngModelOptions attributes', function() {
1980
1980
'/>' ) ;
1981
1981
1982
1982
browserTrigger ( inputElm , 'click' ) ;
1983
- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
1983
+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
1984
1984
$timeout . flush ( 2000 ) ;
1985
- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
1985
+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
1986
1986
$timeout . flush ( 9000 ) ;
1987
1987
expect ( $rootScope . checkbox ) . toBe ( true ) ;
1988
1988
} ) ;
@@ -2038,9 +2038,9 @@ describe('ngModelOptions attributes', function() {
2038
2038
'/>' ) ;
2039
2039
2040
2040
helper . changeInputValueTo ( 'a' ) ;
2041
- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2041
+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
2042
2042
$timeout . flush ( 6000 ) ;
2043
- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2043
+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
2044
2044
$timeout . flush ( 4000 ) ;
2045
2045
expect ( $rootScope . name ) . toEqual ( 'a' ) ;
2046
2046
helper . changeInputValueTo ( 'b' ) ;
@@ -2060,9 +2060,9 @@ describe('ngModelOptions attributes', function() {
2060
2060
2061
2061
inputElm [ 0 ] . checked = false ;
2062
2062
browserTrigger ( inputElm , 'click' ) ;
2063
- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2063
+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
2064
2064
$timeout . flush ( 8000 ) ;
2065
- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2065
+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
2066
2066
$timeout . flush ( 3000 ) ;
2067
2067
expect ( $rootScope . checkbox ) . toBe ( true ) ;
2068
2068
inputElm [ 0 ] . checked = true ;
@@ -2083,9 +2083,9 @@ describe('ngModelOptions attributes', function() {
2083
2083
2084
2084
inputElm [ 0 ] . checked = false ;
2085
2085
browserTrigger ( inputElm , 'click' ) ;
2086
- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2086
+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
2087
2087
$timeout . flush ( 8000 ) ;
2088
- expect ( $rootScope . checkbox ) . toBe ( undefined ) ;
2088
+ expect ( $rootScope . checkbox ) . toBeUndefined ( ) ;
2089
2089
$timeout . flush ( 3000 ) ;
2090
2090
expect ( $rootScope . checkbox ) . toBe ( true ) ;
2091
2091
inputElm [ 0 ] . checked = true ;
@@ -2108,9 +2108,9 @@ describe('ngModelOptions attributes', function() {
2108
2108
helper . changeGivenInputTo ( inputElm , 'a' ) ;
2109
2109
expect ( $rootScope . name ) . toEqual ( undefined ) ;
2110
2110
browserTrigger ( inputElm , 'blur' ) ;
2111
- expect ( $rootScope . name ) . toBe ( undefined ) ;
2111
+ expect ( $rootScope . name ) . toBeUndefined ( ) ;
2112
2112
$timeout . flush ( 2000 ) ;
2113
- expect ( $rootScope . name ) . toBe ( undefined ) ;
2113
+ expect ( $rootScope . name ) . toBeUndefined ( ) ;
2114
2114
$timeout . flush ( 9000 ) ;
2115
2115
expect ( $rootScope . name ) . toEqual ( 'a' ) ;
2116
2116
dealoc ( doc ) ;
0 commit comments