From 17b2d07dafc71fb706d32e7cc8fb7b9cffacb7e1 Mon Sep 17 00:00:00 2001 From: Julien Fabre Date: Thu, 21 Oct 2021 14:09:45 +0200 Subject: [PATCH] [GH-852]: Add tests for galleryCard (#1587) * chore[GH-#852]: Add tests for GalleryCard * fix: error octoClient not mocked * fix: review snapshot for image --- .../__snapshots__/galleryCard.test.tsx.snap | 940 ++++++++++++++++++ .../components/gallery/galleryCard.test.tsx | 424 ++++++++ 2 files changed, 1364 insertions(+) create mode 100644 webapp/src/components/gallery/__snapshots__/galleryCard.test.tsx.snap create mode 100644 webapp/src/components/gallery/galleryCard.test.tsx diff --git a/webapp/src/components/gallery/__snapshots__/galleryCard.test.tsx.snap b/webapp/src/components/gallery/__snapshots__/galleryCard.test.tsx.snap new file mode 100644 index 000000000..f19bb59bc --- /dev/null +++ b/webapp/src/components/gallery/__snapshots__/galleryCard.test.tsx.snap @@ -0,0 +1,940 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`src/components/gallery/GalleryCard with a comment content return GalleryCard with content readonly 1`] = ` +
+
+ +
+`; + +exports[`src/components/gallery/GalleryCard with a comment content should match snapshot 1`] = ` +
+
+