Moving App into a directory and adding tests
This commit is contained in:
parent
8817b5f027
commit
91ee254477
11
src/components/App/__snapshots__/test.js.snap
Normal file
11
src/components/App/__snapshots__/test.js.snap
Normal file
@ -0,0 +1,11 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Message rendering 1`] = `
|
||||
<Message
|
||||
heading="React App"
|
||||
>
|
||||
<p>
|
||||
Placeholder app content
|
||||
</p>
|
||||
</Message>
|
||||
`;
|
11
src/components/App/test.js
Normal file
11
src/components/App/test.js
Normal file
@ -0,0 +1,11 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import App from './index';
|
||||
|
||||
test('Message rendering', () => {
|
||||
const component = shallow(
|
||||
<App/>
|
||||
);
|
||||
expect(component).toMatchSnapshot();
|
||||
});
|
Loading…
Reference in New Issue
Block a user