fix jest example styles

This commit is contained in:
nkzawa 2016-10-26 19:28:41 +09:00
parent 06b8e5e676
commit 9a78dd8d1c
2 changed files with 12 additions and 12 deletions

View file

@ -1,12 +1,12 @@
/* global it, expect */
import React from 'react'; import React from 'react'
import {shallow} from 'enzyme'; import { shallow } from 'enzyme'
import App from '../pages/index.js'; import App from '../pages/index.js'
it('App shows "Hello world!"', () => { it('App shows "Hello world!"', () => {
const app = shallow( const app = shallow(
<App/> <App />
); )
expect(app.find('p').text()).toEqual('Hello world!'); expect(app.find('p').text()).toEqual('Hello world!')
}); })

View file

@ -1,6 +1,6 @@
import React from 'react' import React from 'react'
export default () => ( export default () => (
<div> <div>
<p>Hello world!</p> <p>Hello world!</p>
</div> </div>
) )