From 8b66243ca2160bdb249194f64feaa3bb4947e278 Mon Sep 17 00:00:00 2001 From: Nishant Mittal Date: Tue, 26 Oct 2021 16:58:53 +0530 Subject: [PATCH] [GH-839] Unit tests for viewTitle.tsx (#1662) * test: unit tests for viewTitle.tsx * readonly: false --- .../__snapshots__/viewTitle.test.tsx.snap | 656 ++++++++++++++++++ webapp/src/components/viewTitle.test.tsx | 166 +++++ 2 files changed, 822 insertions(+) create mode 100644 webapp/src/components/__snapshots__/viewTitle.test.tsx.snap create mode 100644 webapp/src/components/viewTitle.test.tsx diff --git a/webapp/src/components/__snapshots__/viewTitle.test.tsx.snap b/webapp/src/components/__snapshots__/viewTitle.test.tsx.snap new file mode 100644 index 000000000..d70d7e209 --- /dev/null +++ b/webapp/src/components/__snapshots__/viewTitle.test.tsx.snap @@ -0,0 +1,656 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`components/viewTitle add random icon 1`] = ` +
+
+
+ + +
+
+ +
+
+
+`; + +exports[`components/viewTitle hide description 1`] = ` +
+
+
+ +
+
+
+ +
+ +
+
+
+`; + +exports[`components/viewTitle should match snapshot 1`] = ` +
+
+
+ +
+
+
+ +
+ +
+
+
+
+