From e32a916bd24c9fc116e1ab73e0360b9bbbcb7c00 Mon Sep 17 00:00:00 2001
From: "Arthur E. Jones" <PartyLich@gmail.com>
Date: Mon, 4 Jul 2022 22:16:43 -0500
Subject: [PATCH] test: add impossible date test cases

Tests impossible dates eg
- months outside 1-12 range
- days outside valid range for a given month
---
 .../src/components/modals/ImportTransactions.test.js | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/packages/loot-design/src/components/modals/ImportTransactions.test.js b/packages/loot-design/src/components/modals/ImportTransactions.test.js
index 28953ddbc..2fc22514d 100644
--- a/packages/loot-design/src/components/modals/ImportTransactions.test.js
+++ b/packages/loot-design/src/components/modals/ImportTransactions.test.js
@@ -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) {
-- 
GitLab