File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11860,11 +11860,20 @@ describe('Validators', () => {
1186011860 '2023-01-31' ,
1186111861 '2023-03' ,
1186211862 '2023' ,
11863+ '2020-001' ,
11864+ '2023-W01' ,
11865+ '2023-03-15T12:30Z' ,
11866+ '2023-03-15T12:30:45.1Z' ,
11867+ '2023-03-15T12:30:45.12Z' ,
11868+ '2023-03-15T12:30:45.123456Z' ,
11869+ '2020-W53-4' ,
11870+ '2009-W53-4' ,
1186311871 ] ;
1186411872
1186511873 const invalidISO8601 = [
1186611874 '2019-W53-2' ,
1186711875 '2020-W52-8' ,
11876+ '2012-W53-4' ,
1186811877 '2019-366' ,
1186911878 '2023-13-01' ,
1187011879 '2023-02-30' ,
@@ -11894,6 +11903,20 @@ describe('Validators', () => {
1189411903 '20A3' ,
1189511904 '+001980-13-25' ,
1189611905 '0000-01-01' ,
11906+ '2023-0032' ,
11907+ '2023-W01-8' ,
11908+ '2023-W01-0' ,
11909+ '2023-W01-01' ,
11910+ '2023-03-15T' ,
11911+ '2023-03-15T12:' ,
11912+ '2023-03-15T12:30:Z' ,
11913+ '2023-03-15T12:30:45.' ,
11914+ '2023-03-15T12:30:45.12+2400' ,
11915+ '2023-03-15T12:30:45+2400' ,
11916+ '2023-03-15T12:30:45+2360' ,
11917+ '2023-W1' ,
11918+ '2023-W01-' ,
11919+ '2023-03-15T12:30:45.123+01' ,
1189711920 ] ;
1189811921
1189911922 it ( 'should validate ISO 8601 dates' , ( ) => {
You can’t perform that action at this time.
0 commit comments