diff --git a/src/components/__tests__/__snapshots__/header.test.js.snap b/src/components/__tests__/__snapshots__/header.test.js.snap new file mode 100644 index 0000000..54c655e --- /dev/null +++ b/src/components/__tests__/__snapshots__/header.test.js.snap @@ -0,0 +1,103 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Header renders correctly 1`] = ` +
+ +

+ github profile markdown generator logo +
+ heading +
+

+
+
+ +
+ + 0 + +
+
+ +
+ + 0 + +
+
+
+
+`; diff --git a/src/components/__tests__/header.test.js b/src/components/__tests__/header.test.js new file mode 100644 index 0000000..cbf7033 --- /dev/null +++ b/src/components/__tests__/header.test.js @@ -0,0 +1,13 @@ +import React from "react" +import renderer from "react-test-renderer" + +import Header from "../header" + +describe("Header", () => { + it("renders correctly", () => { + const tree = renderer + .create(
) + .toJSON() + expect(tree).toMatchSnapshot() + }) +})