Commit 9a78dd8d authored by nkzawa's avatar nkzawa

fix jest example styles

parent 06b8e5e6
/* 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!')
}); })
\ No newline at end of file
import React from 'react' import React from 'react'
export default () => ( export default () => (
<div> <div>
<p>Hello world!</p> <p>Hello world!</p>
</div> </div>
) )
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment