Skip to content

Commit

Permalink
test(Input): Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
allyssonsantos committed Mar 13, 2019
1 parent 1af7ac4 commit 72e4478
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/Input/Input.test.jsx
@@ -0,0 +1,11 @@
import React from 'react';
import Input from './Input';
import renderer from 'react-test-renderer';

describe('<Input />', () => {
describe('Snapshots', () => {
it('should match snapshot', () => {
expect(renderer.create(<Input />).toJSON()).toMatchSnapshot();
});
});
});
16 changes: 16 additions & 0 deletions components/Input/__snapshots__/Input.test.jsx.snap
@@ -0,0 +1,16 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<Input /> Snapshots should match snapshot 1`] = `
.c0 {
outline: none;
border: none;
padding: 3px 3px 5px 3px;
border-left: 1px solid #868a8e;
border-top: 1px solid #868a8e;
box-shadow: inset -1px -1px 0 0 #c3c7cb,inset 1px 1px 0 0 #000000,0.5px 0.5px 0 0.5px #ffffff;
}
<input
className="c0"
/>
`;

0 comments on commit 72e4478

Please sign in to comment.