Add dropdown on Sort button on table
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
|
||||
import Checkbox from '../Checkbox';
|
||||
import { ThemeProvider } from '@emotion/react';
|
||||
import { lightTheme } from '../../../layout/styles/themes';
|
||||
@ -12,9 +10,7 @@ export default {
|
||||
export const RegularCheckbox = () => {
|
||||
return (
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
<MemoryRouter initialEntries={['/companies']}>
|
||||
<Checkbox name="selected-company-1" id="selected-company--1" />
|
||||
</MemoryRouter>
|
||||
<Checkbox name="selected-company-1" id="selected-company--1" />
|
||||
</ThemeProvider>
|
||||
);
|
||||
};
|
||||
|
||||
@ -2,7 +2,7 @@ import { render } from '@testing-library/react';
|
||||
|
||||
import { RegularCheckbox } from '../__stories__/Checkbox.stories';
|
||||
|
||||
it('Checks the NavItem renders', () => {
|
||||
it('Checks the Checkbox renders', () => {
|
||||
const { getByTestId } = render(<RegularCheckbox />);
|
||||
|
||||
expect(getByTestId('input-checkbox')).toHaveAttribute(
|
||||
|
||||
Reference in New Issue
Block a user