diff --git a/client/tests/__snapshots__/sidebar.component.test.js.snap b/client/tests/__snapshots__/sidebar.component.test.js.snap new file mode 100644 index 0000000..7c82ee4 --- /dev/null +++ b/client/tests/__snapshots__/sidebar.component.test.js.snap @@ -0,0 +1,65 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` Unit Tests renders correctly 1`] = ` + +`; \ No newline at end of file diff --git a/client/tests/sidebar.component.test.js b/client/tests/sidebar.component.test.js new file mode 100644 index 0000000..38cab36 --- /dev/null +++ b/client/tests/sidebar.component.test.js @@ -0,0 +1,18 @@ +import TestRenderer from 'react-test-renderer'; +import SideBar from '../src/_components/SideBar' +import React from 'react' + + +describe(" Unit Tests", () => { + + it("renders correctly", () => { + var testFunction = jest.fn(); + var component = TestRenderer.create( < + SideBar changeSelectedDashboardService = { + testFunction + } + /> + ); + expect(component).toMatchSnapshot(); + }); +}); \ No newline at end of file