1
0
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:
Alex Andreev 2022-11-28 10:17:20 +03:00
parent 31c7ae118d
commit 7ce064c21b

View File

@ -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();
});
});