mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
fix jest example styles
This commit is contained in:
parent
06b8e5e676
commit
9a78dd8d1c
|
@ -1,12 +1,12 @@
|
|||
|
||||
import React from 'react';
|
||||
import {shallow} from 'enzyme';
|
||||
import App from '../pages/index.js';
|
||||
/* global it, expect */
|
||||
import React from 'react'
|
||||
import { shallow } from 'enzyme'
|
||||
import App from '../pages/index.js'
|
||||
|
||||
it('App shows "Hello world!"', () => {
|
||||
const app = shallow(
|
||||
<App/>
|
||||
);
|
||||
<App />
|
||||
)
|
||||
|
||||
expect(app.find('p').text()).toEqual('Hello world!');
|
||||
});
|
||||
expect(app.find('p').text()).toEqual('Hello world!')
|
||||
})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
export default () => (
|
||||
<div>
|
||||
<p>Hello world!</p>
|
||||
</div>
|
||||
)
|
||||
<div>
|
||||
<p>Hello world!</p>
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue