Moving App into a directory and adding tests

This commit is contained in:
Jeff Avallone 2018-02-13 20:13:11 -05:00
parent 8817b5f027
commit 91ee254477
3 changed files with 22 additions and 0 deletions

View 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>
`;

View 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();
});