From 7b40227115e8d1f4d8bd17e9912b8ebb3b373709 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 6 Nov 2022 23:04:51 +0100 Subject: [PATCH] test: common modals (#2069) * test: add tests for common-modal Signed-off-by: Philip Molares Signed-off-by: Tilman Vatteroth --- .../__snapshots__/common-modal.test.tsx.snap | 173 ++++++++++++++++++ .../deletion-moadal.test.tsx.snap | 40 ++++ .../common/modals/common-modal.test.tsx | 113 ++++++++++++ src/components/common/modals/common-modal.tsx | 2 + .../common/modals/deletion-moadal.test.tsx | 23 +++ 5 files changed, 351 insertions(+) create mode 100644 src/components/common/modals/__snapshots__/common-modal.test.tsx.snap create mode 100644 src/components/common/modals/__snapshots__/deletion-moadal.test.tsx.snap create mode 100644 src/components/common/modals/common-modal.test.tsx create mode 100644 src/components/common/modals/deletion-moadal.test.tsx diff --git a/src/components/common/modals/__snapshots__/common-modal.test.tsx.snap b/src/components/common/modals/__snapshots__/common-modal.test.tsx.snap new file mode 100644 index 000000000..bf2744106 --- /dev/null +++ b/src/components/common/modals/__snapshots__/common-modal.test.tsx.snap @@ -0,0 +1,173 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`CommonModal does not render if show is false 1`] = `
`; + +exports[`CommonModal render correctly in size lg 1`] = ` +