Skip to content
Snippets Groups Projects
Commit f8ced714 authored by picklesrus's avatar picklesrus
Browse files

more tests

parent 9a506b08
No related branches found
No related tags found
1 merge request!1Synching Fork
......@@ -4,13 +4,13 @@ import ButtonComponent from '../../../src/components/button/button';
import renderer from 'react-test-renderer';
describe('ButtonComponent', () => {
test('matches snapshot', () => {
const onClick = jest.fn();
const component = renderer.create(
<ButtonComponent onClick={onClick} />
);
expect(component.toJSON()).toMatchSnapshot();
});
// test('matches snapshot', () => {
// const onClick = jest.fn();
// const component = renderer.create(
// <ButtonComponent onClick={onClick} />
// );
// expect(component.toJSON()).toMatchSnapshot();
// });
// test('triggers callback when clicked', () => {
// const onClick = jest.fn();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment