mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix test a bit
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
d3ea5f29dc
commit
ac484a1621
@ -16,12 +16,11 @@ describe("<VerticalBar/>", () => {
|
||||
expect(container.querySelector("[data-testid='vertical-bar']")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("bar uses provided color and value", () => {
|
||||
const { container } = render(<VerticalBar color="red" value={50} />);
|
||||
it("bar uses provided value", () => {
|
||||
const { container } = render(<VerticalBar value={50} />);
|
||||
|
||||
expect(container.querySelector("[data-testid='vertical-bar'] div")).toHaveStyle(`
|
||||
background-color: red;
|
||||
height: 50%;
|
||||
block-size: 50%;
|
||||
`);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user