mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing to-bottom tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
31c7ae118d
commit
7ce064c21b
@ -26,12 +26,6 @@ describe("<ToBottom/>", () => {
|
||||
expect(container).toBeInstanceOf(HTMLElement);
|
||||
});
|
||||
|
||||
it("has 'To bottom' label", () => {
|
||||
const { getByText } = render(<ToBottom onClick={noop}/>);
|
||||
|
||||
expect(getByText("To bottom")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("has a arrow down icon", () => {
|
||||
const { getByText } = render(<ToBottom onClick={noop}/>);
|
||||
|
||||
@ -42,7 +36,7 @@ describe("<ToBottom/>", () => {
|
||||
const callback = jest.fn();
|
||||
const { getByText } = render(<ToBottom onClick={callback}/>);
|
||||
|
||||
fireEvent.click(getByText("To bottom"));
|
||||
fireEvent.click(getByText("expand_more"));
|
||||
expect(callback).toBeCalled();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user