8000 fix jest example styles · JavaScriptExpert/next.js@9a78dd8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a78dd8

Browse files
committed
fix jest example styles
1 parent 06b8e5e commit 9a78dd8

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
2-
import React from 'react';
3-
import {shallow} from 'enzyme';
4-
import App from '../pages/index.js';
1+
/* global it, expect */
2+
import React from 'react'
3+
import { shallow } from 'enzyme'
4+
import App from '../pages/index.js'
55

66
it('App shows "Hello world!"', () => {
77
const app = shallow(
8-
<App/>
9-
);
8+
<App />
9+
)
1010

11-
expect(app.find('p').text()).toEqual('Hello world!');
12-
});
11+
expect(app.find('p').text()).toEqual('Hello world!')
12+
})

examples/with-jest/pages/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
export default () => (
3-
<div>
4-
<p>Hello world!</p>
5-
</div>
6-
)
3+
<div>
4+
<p>Hello world!</p>
5+
</div>
6+
)

0 commit comments

Comments
 (0)
0