From 7123311902cdf0ba60d18f652d216238705c7991 Mon Sep 17 00:00:00 2001 From: Julien Fabre Date: Mon, 4 Oct 2021 20:01:54 +0200 Subject: [PATCH] [GH-866] add unit test for viewHeaderGroupByMenu (#1403) * --wip-- [skip ci] * chore[#866]: add unit test for viewHeaderGroupByMenu * fix: review test and add testUtils Co-authored-by: Mattermod --- .../viewHeaderGroupByMenu.test.tsx.snap | 313 ++++++++++++++++++ .../viewHeader/viewHeaderGroupByMenu.test.tsx | 93 ++++++ 2 files changed, 406 insertions(+) create mode 100644 webapp/src/components/viewHeader/__snapshots__/viewHeaderGroupByMenu.test.tsx.snap create mode 100644 webapp/src/components/viewHeader/viewHeaderGroupByMenu.test.tsx diff --git a/webapp/src/components/viewHeader/__snapshots__/viewHeaderGroupByMenu.test.tsx.snap b/webapp/src/components/viewHeader/__snapshots__/viewHeaderGroupByMenu.test.tsx.snap new file mode 100644 index 000000000..eb93a2ba0 --- /dev/null +++ b/webapp/src/components/viewHeader/__snapshots__/viewHeaderGroupByMenu.test.tsx.snap @@ -0,0 +1,313 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`components/viewHeader/viewHeaderGroupByMenu return groupBy menu 1`] = ` +
+