@@ -1947,7 +1947,7 @@ describe('input', function() {
1947
1947
compileInput ( '<input type="time" ng-model="threeFortyOnePm"/>' ) ;
1948
1948
1949
1949
scope . $apply ( function ( ) {
1950
- scope . threeFortyOnePm = new Date ( 0 , 0 , 1 , 15 , 41 ) ;
1950
+ scope . threeFortyOnePm = new Date ( 1970 , 0 , 1 , 15 , 41 ) ;
1951
1951
} ) ;
1952
1952
1953
1953
expect ( inputElm . val ( ) ) . toBe ( '15:41' ) ;
@@ -1957,7 +1957,7 @@ describe('input', function() {
1957
1957
compileInput ( '<input type="time" ng-model="breakMe"/>' ) ;
1958
1958
1959
1959
scope . $apply ( function ( ) {
1960
- scope . breakMe = new Date ( 0 , 0 , 1 , 16 , 25 ) ;
1960
+ scope . breakMe = new Date ( 1970 , 0 , 1 , 16 , 25 ) ;
1961
1961
} ) ;
1962
1962
1963
1963
expect ( inputElm . val ( ) ) . toBe ( '16:25' ) ;
@@ -2023,7 +2023,7 @@ describe('input', function() {
2023
2023
it ( 'should validate' , function ( ) {
2024
2024
changeInputValueTo ( '23:02' ) ;
2025
2025
expect ( inputElm ) . toBeValid ( ) ;
2026
- expect ( + scope . value ) . toBe ( + new Date ( 0 , 0 , 1 , 23 , 2 ) ) ;
2026
+ expect ( + scope . value ) . toBe ( + new Date ( 1970 , 0 , 1 , 23 , 2 ) ) ;
2027
2027
expect ( scope . form . alias . $error . min ) . toBeFalsy ( ) ;
2028
2028
} ) ;
2029
2029
} ) ;
@@ -2043,7 +2043,7 @@ describe('input', function() {
2043
2043
it ( 'should validate' , function ( ) {
2044
2044
changeInputValueTo ( '05:30' ) ;
2045
2045
expect ( inputElm ) . toBeValid ( ) ;
2046
- expect ( + scope . value ) . toBe ( + new Date ( 0 , 0 , 1 , 5 , 30 ) ) ;
2046
+ expect ( + scope . value ) . toBe ( + new Date ( 1970 , 0 , 1 , 5 , 30 ) ) ;
2047
2047
expect ( scope . form . alias . $error . max ) . toBeFalsy ( ) ;
2048
2048
} ) ;
2049
2049
} ) ;
0 commit comments