8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b8e5e commit 9a78dd8Copy full SHA for 9a78dd8
examples/with-jest/__tests__/index.test.js
@@ -1,12 +1,12 @@
1
-
2
-import React from 'react';
3
-import {shallow} from 'enzyme';
4
-import App from '../pages/index.js';
+/* global it, expect */
+import React from 'react'
+import { shallow } from 'enzyme'
+import App from '../pages/index.js'
5
6
it('App shows "Hello world!"', () => {
7
const app = shallow(
8
- <App/>
9
- );
+ <App />
+ )
10
11
- expect(app.find('p').text()).toEqual('Hello world!');
12
-});
+ expect(app.find('p').text()).toEqual('Hello world!')
+})
examples/with-jest/pages/index.js
@@ -1,6 +1,6 @@
import React from 'react'
export default () => (
- <div>
- <p>Hello world!</p>
- </div>
-)
+ <div>
+ <p>Hello world!</p>
+ </div>
+)
0 commit comments