Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/button/src/Button/Button.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@ describe('packages/button', () => {
<Button onClick={() => {}} />;
});

test('infers the onClick handler argument', () => {
<Button
onClick={event => {
event.preventDefault();
}}
/>;
});

test('accepts anchor tag attributes', () => {
<Button href="http://mongodb.design" target="_blank" rel="noopener" />;
});
Expand Down
Loading