From a4ea5ac9e9e58af34ed56069cfe786e6abb7c1a4 Mon Sep 17 00:00:00 2001 From: Carlos Patino Date: Fri, 23 Oct 2020 15:02:51 +0100 Subject: [PATCH] Addint test for the footer --- .../__snapshots__/footer.test.js.snap | 169 ++++++++++++++++++ src/components/__tests__/footer.test.js | 11 ++ 2 files changed, 180 insertions(+) create mode 100644 src/components/__tests__/__snapshots__/footer.test.js.snap create mode 100644 src/components/__tests__/footer.test.js diff --git a/src/components/__tests__/__snapshots__/footer.test.js.snap b/src/components/__tests__/__snapshots__/footer.test.js.snap new file mode 100644 index 0000000..7d62e9f --- /dev/null +++ b/src/components/__tests__/__snapshots__/footer.test.js.snap @@ -0,0 +1,169 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Footer component Matches the snapshot 1`] = ` +
+
+
+

+
+ github profile markdown generator logo +
+ GitHub Profile + + github profile markdown generator logo + + README Generator + +
+
+

+
+
+
+ + Pages + +
+
+ + Addons + +
+
+ + Support + +
+
+ + About + +
+
+
+
+ + More + +
+
+ + Github + +
+
+ + Releases + +
+
+ + Issues + +
+
+ + Pull Requests + +
+
+
+
+ + Join Community + +
+
+ + Discord of the community + +
+
+
+
+ Developed in India + + + + 🇮🇳 + +
+
+`; diff --git a/src/components/__tests__/footer.test.js b/src/components/__tests__/footer.test.js new file mode 100644 index 0000000..87b4ff6 --- /dev/null +++ b/src/components/__tests__/footer.test.js @@ -0,0 +1,11 @@ +import React from "react" +import renderer from "react-test-renderer" + +import Footer from "../footer" + +describe("Footer component", () => { + test("Matches the snapshot", () => { + const footer = renderer.create(