From 5e559d46e2fdad1f1fda0c17b0d5ea06626cd549 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 29 Jun 2023 16:19:05 +0200 Subject: [PATCH] add query variable to unit tests --- admin/src/components/CreationTransactionList.spec.js | 2 ++ admin/src/pages/CreationConfirm.spec.js | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/admin/src/components/CreationTransactionList.spec.js b/admin/src/components/CreationTransactionList.spec.js index bff1bb32c..28aa1707d 100644 --- a/admin/src/components/CreationTransactionList.spec.js +++ b/admin/src/components/CreationTransactionList.spec.js @@ -39,6 +39,7 @@ const defaultData = () => { deletedBy: null, deletedAt: null, createdAt: new Date(), + moderatorId: null, }, { id: 2, @@ -61,6 +62,7 @@ const defaultData = () => { deletedBy: null, deletedAt: null, createdAt: new Date(), + moderatorId: null, }, ], }, diff --git a/admin/src/pages/CreationConfirm.spec.js b/admin/src/pages/CreationConfirm.spec.js index c8f01d40d..c1c823761 100644 --- a/admin/src/pages/CreationConfirm.spec.js +++ b/admin/src/pages/CreationConfirm.spec.js @@ -341,6 +341,7 @@ describe('CreationConfirm', () => { currentPage: 1, order: 'DESC', pageSize: 25, + query: '', statusFilter: ['CONFIRMED'], }) }) @@ -356,6 +357,7 @@ describe('CreationConfirm', () => { currentPage: 1, order: 'DESC', pageSize: 25, + query: '', statusFilter: ['IN_PROGRESS', 'PENDING'], }) }) @@ -372,6 +374,7 @@ describe('CreationConfirm', () => { currentPage: 1, order: 'DESC', pageSize: 25, + query: '', statusFilter: ['DENIED'], }) }) @@ -388,6 +391,7 @@ describe('CreationConfirm', () => { currentPage: 1, order: 'DESC', pageSize: 25, + query: '', statusFilter: ['DELETED'], }) }) @@ -404,6 +408,7 @@ describe('CreationConfirm', () => { currentPage: 1, order: 'DESC', pageSize: 25, + query: '', statusFilter: ['IN_PROGRESS', 'PENDING', 'CONFIRMED', 'DENIED', 'DELETED'], }) }) @@ -424,6 +429,7 @@ describe('CreationConfirm', () => { currentPage: 2, order: 'DESC', pageSize: 25, + query: '', statusFilter: ['IN_PROGRESS', 'PENDING', 'CONFIRMED', 'DENIED', 'DELETED'], }) }) @@ -439,6 +445,7 @@ describe('CreationConfirm', () => { currentPage: 1, order: 'DESC', pageSize: 25, + query: '', statusFilter: ['IN_PROGRESS', 'PENDING'], }) })