Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 327efa7

Browse files
committed
test(input):fix failing test on MS Edge
For whatever reason, MS Edge throws during testing, when trying to set the view value to `9999-12-31T23.59.59`. Other values I tried (including later dates) didn't throw. I also couldn't reproduce it outside of the test.
1 parent bee6650 commit 327efa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ng/directive/inputSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ describe('input', function() {
11961196

11971197
it('should validate if max is empty', function() {
11981198
$rootScope.maxVal = undefined;
1199-
$rootScope.value = new Date(9999, 11, 31, 23, 59, 59);
1199+
$rootScope.value = new Date(3000, 11, 31, 23, 59, 59);
12001200
$rootScope.$digest();
12011201

12021202
expect($rootScope.form.alias.$error.max).toBeFalsy();

0 commit comments

Comments
 (0)