Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CianciarusoCataldo committed Jul 30, 2024
1 parent 6bc6f37 commit e1743c2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/test-suites/molecules/ExpandableContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@ const expandableContainerTest = () => {
describe("ExpandableContainer", () => {
test("Rendering test", () => {
let wrapper = mount(
<ExpandableContainer>Test Container</ExpandableContainer>
<ExpandableContainer arrowPosition="top">
Test Container
</ExpandableContainer>
);
wrapper.find('[data-mbx-id="icb"]').simulate("click");
expect(wrapper);

wrapper = mount(
<ExpandableContainer
//@ts-ignore
arrowPosition="wrong"
>
Test Container
</ExpandableContainer>
);
wrapper.find('[data-mbx-id="icb"]').simulate("click");
expect(wrapper);
Expand Down

0 comments on commit e1743c2

Please sign in to comment.