test: add impossible date test cases
Tests impossible dates eg - months outside 1-12 range - days outside valid range for a given month
This commit is contained in:
parent
5756ef6f98
commit
e32a916bd2
1 changed files with 11 additions and 1 deletions
|
@ -14,7 +14,17 @@ describe('Import transactions', function() {
|
|||
{ str: '12 24 20', order: 'mm dd yyyy' },
|
||||
{ str: '20 12 24', order: 'yyyy mm dd' },
|
||||
{ str: '2020 12 24', order: 'yy mm dd' },
|
||||
{ str: '12 24 2020', order: 'mm dd yy' }
|
||||
{ str: '12 24 2020', order: 'mm dd yy' },
|
||||
{ str: '12 00 2020', order: 'mm dd yyyy' },
|
||||
{ str: '12 32 2020', order: 'mm dd yyyy' },
|
||||
{ str: '13 24 2020', order: 'mm dd yyyy' },
|
||||
{ str: '00 24 2020', order: 'mm dd yyyy' },
|
||||
{ str: '02 30 2020', order: 'mm dd yyyy' },
|
||||
{ str: '04 31 2020', order: 'mm dd yyyy' },
|
||||
{ str: '04 31 2020', order: 'mm dd yyyy' },
|
||||
{ str: '06 31 2020', order: 'mm dd yyyy' },
|
||||
{ str: '09 31 2020', order: 'mm dd yyyy' },
|
||||
{ str: '11 31 2020', order: 'mm dd yyyy' }
|
||||
];
|
||||
|
||||
for (const { str, order } of invalidInputs) {
|
||||
|
|
Loading…
Reference in a new issue