We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cec281f commit ac6f03bCopy full SHA for ac6f03b
libs/components/src/layout/Flex/tests.tsx
@@ -21,4 +21,18 @@ describe("Flex", () => {
21
expect(FlexElement).toHaveStyle("height: auto");
22
expect(FlexElement).toHaveStyle("width: auto");
23
});
24
+ describe("when props are passed", () => {
25
+ describe("for direction", () => {
26
+ it("should render with direction column", () => {
27
+ render(<Flex direction="column">FlexChild</Flex>);
28
+ const FlexElement = screen.getByText("FlexChild");
29
+ expect(FlexElement).toHaveStyle("flex-direction: column");
30
+ });
31
+ it("should render with direction row", () => {
32
+ render(<Flex direction="row">FlexChild</Flex>);
33
34
+ expect(FlexElement).toHaveStyle("flex-direction: row");
35
36
37
38
0 commit comments