Update PinButton.test.tsx
This commit is contained in:
@@ -34,8 +34,14 @@ 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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user