@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
14 lines (13 loc) • 812 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { render } from '@testing-library/react';
import { Stack } from './stack';
describe('<Stack>', () => {
test(' it should render properly', () => {
const { container } = render(_jsxs(Stack, { children: [_jsx("div", { children: "1" }), _jsx("div", { children: "2" }), _jsx("div", { children: "3" })] }));
expect(container).not.toBeNull();
});
test(' it should render properly with props', () => {
const { container } = render(_jsxs(Stack, { direction: "row", rowGap: 2, columnGap: 2, vPadding: 2, hPadding: 2, vAlign: "start", hAlign: "end", children: [_jsx("div", { children: "1" }), _jsx("div", { children: "2" }), _jsx("div", { children: "3" })] }));
expect(container).not.toBeNull();
});
});