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

This commit is contained in:
Jason Hunter 2021-06-05 21:45:57 -04:00 committed by GitHub
parent c736a93a9d
commit 19ea9a5d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ describe('Sidebar', () => {
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');
render(<Sidebar />);
expect(screen.queryByRole('link', { name: 'front' })).toBeInTheDocument();