diff --git a/src/components/UnderBar/UnderBar.jsx b/src/components/UnderBar/UnderBar.jsx index cc42d60..6802ebb 100644 --- a/src/components/UnderBar/UnderBar.jsx +++ b/src/components/UnderBar/UnderBar.jsx @@ -1,7 +1,90 @@ import React from "react"; - -function UnderBar() { - return
UnderBar
; +import Link from "next/link"; +import { twMerge } from "tailwind-merge"; +function UnderBar({ className }) { + return ( +
+ +
+ ); } export default UnderBar; diff --git a/src/components/UnderBar/__test__/UnderBar.test.js b/src/components/UnderBar/__test__/UnderBar.test.js new file mode 100644 index 0000000..c906fff --- /dev/null +++ b/src/components/UnderBar/__test__/UnderBar.test.js @@ -0,0 +1,7 @@ +import renderer from "react-test-renderer"; +import UnderBar from "../UnderBar"; + +it("renders correctly", () => { + const tree = renderer.create().toJSON(); + expect(tree).toMatchSnapshot(); +}); diff --git a/src/components/UnderBar/__test__/__snapshots__/UnderBar.test.js.snap b/src/components/UnderBar/__test__/__snapshots__/UnderBar.test.js.snap new file mode 100644 index 0000000..3d3a59d --- /dev/null +++ b/src/components/UnderBar/__test__/__snapshots__/UnderBar.test.js.snap @@ -0,0 +1,111 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders correctly 1`] = ` +
+ +
+`;