Skip to content

A local-first personal finance app

test: add invalid length date test cases

Arthur E. Jones70b99c451c0c
diff --git a/packages/loot-design/src/components/modals/ImportTransactions.test.js b/packages/loot-design/src/components/modals/ImportTransactions.test.js
index 2fc22514dc..1c5b35f52d 100644
--- a/packages/loot-design/src/components/modals/ImportTransactions.test.js
+++ b/packages/loot-design/src/components/modals/ImportTransactions.test.js
@@ -24,7 +24,10 @@ describe('Import transactions', function() {
{ 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' }
+ { str: '11 31 2020', order: 'mm dd yyyy' },
+ { str: '2046 31 2020', order: 'mm dd yyyy' },
+ { str: '2011 31 2020', order: 'mm dd yy' },
+ { str: '2020', order: 'mm dd yy' }
];
for (const { str, order } of invalidInputs) {