Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19fb01b

Browse files
committed
Clean up tests
1 parent b532d93 commit 19fb01b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

site/components/Form/FormCloseButton.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ describe("FormCloseButton", () => {
2626

2727
// Then
2828
const element = await screen.findByText("ESC")
29+
30+
// When
2931
fireEvent.click(element)
3032

33+
// Then
3134
expect(onClose).toBeCalledTimes(1)
3235
})
3336

0 commit comments

Comments
 (0)