Cleanup
This commit is contained in:
@@ -34,14 +34,8 @@ describe('<PinButton />', () => {
|
||||
);
|
||||
expect(rendered.getByText('Pin Sidebar')).toBeInTheDocument();
|
||||
|
||||
/*
|
||||
const pinButton = rendered.getByTestId('pin');
|
||||
fireEvent.change(pinButton);
|
||||
*/
|
||||
|
||||
const pinButton = rendered.getByLabelText('Pin Sidebar Switch');
|
||||
fireEvent.click(pinButton);
|
||||
|
||||
expect(mockToggleFn).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -46,7 +46,6 @@ export const PinButton = () => {
|
||||
checked={isPinned}
|
||||
onChange={() => toggleSidebarPinState()}
|
||||
name="pin"
|
||||
data-testid="pin"
|
||||
inputProps={{ 'aria-label': 'Pin Sidebar Switch' }}
|
||||
/>
|
||||
</Tooltip>
|
||||
|
||||
Reference in New Issue
Block a user