diff --git a/components/lib/sidebar/Sidebar.spec.js b/components/lib/sidebar/Sidebar.spec.js new file mode 100644 index 0000000000..36f5978ae3 --- /dev/null +++ b/components/lib/sidebar/Sidebar.spec.js @@ -0,0 +1,18 @@ +import '@testing-library/jest-dom'; +import { render, screen } from '@testing-library/react'; +import { Sidebar } from './sidebar'; + +describe('Sidebar', () => { + test( + 'can be made visible', + () => { + const hideOn = jest.fn(); + + render(); + + const sidebar = screen.queryByRole('complementary'); + + expect(sidebar).toBeVisible(); + } + ); +});