mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-18 02:19:09 +00:00
chore: restructure project into yarn workspaces, remove next
This commit is contained in:
parent
49e308507e
commit
8d06327c03
266 changed files with 16466 additions and 3350 deletions
11
packages/design-system/atoms/button/Button.spec.tsx
Normal file
11
packages/design-system/atoms/button/Button.spec.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { shallow } from 'enzyme';
|
||||
import * as React from 'react';
|
||||
import { Button } from './Button';
|
||||
|
||||
it('fires an onClick callback when clicked', () => {
|
||||
const mock = jest.fn();
|
||||
const view = shallow(<Button onClick={mock}>Button</Button>);
|
||||
|
||||
view.simulate('click');
|
||||
expect(mock).toBeCalled();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue