Update web/src/__tests__/Sidebar.test.jsx

This commit is contained in:
Jason Hunter 2021-06-05 21:45:57 -04:00 committed by Blake Blackshear
parent 2a33c05378
commit de3a19c4f0

View File

@ -31,7 +31,7 @@ describe('Sidebar', () => {
expect(screen.queryByRole('link', { name: 'side' })).toBeInTheDocument(); expect(screen.queryByRole('link', { name: 'side' })).toBeInTheDocument();
}); });
test('render cameras if in camera route', async () => { test('render cameras if in record route', async () => {
window.history.replaceState({}, 'Front Recordings', '/recording/front'); window.history.replaceState({}, 'Front Recordings', '/recording/front');
render(<Sidebar />); render(<Sidebar />);
expect(screen.queryByRole('link', { name: 'front' })).toBeInTheDocument(); expect(screen.queryByRole('link', { name: 'front' })).toBeInTheDocument();