Skip to content

Commit 2145df8

Browse files
committed
Add failing test for Button onClick handlers
1 parent 4412ce1 commit 2145df8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/button/src/Button/Button.spec.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ describe('packages/button', () => {
261261
<Button onClick={() => {}} />;
262262
});
263263

264+
test('infers the onClick handler argument', () => {
265+
<Button onClick={event => {}} />;
266+
});
267+
264268
test('accepts anchor tag attributes', () => {
265269
<Button href="http://mongodb.design" target="_blank" rel="noopener" />;
266270
});

0 commit comments

Comments
 (0)