Move stories and tests inside each component folders
This commit is contained in:
17
front/src/layout/navbar/__tests__/Navbar.test.tsx
Normal file
17
front/src/layout/navbar/__tests__/Navbar.test.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
import { NavbarOnInsights } from '../__stories__/Navbar.stories';
|
||||
|
||||
it('Checks the NavItem renders', () => {
|
||||
const { getByRole } = render(<NavbarOnInsights />);
|
||||
|
||||
expect(getByRole('button', { name: 'Insights' })).toHaveAttribute(
|
||||
'aria-selected',
|
||||
'true',
|
||||
);
|
||||
|
||||
expect(getByRole('button', { name: 'Inbox' })).toHaveAttribute(
|
||||
'aria-selected',
|
||||
'false',
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user