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 @@
|
||||||
|
/* 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!')
|
||||||
});
|
})
|
||||||
|
|
|
@ -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>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue