Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 5d6188f

Browse files
authored
Greenkeeper/jest 19.0.1 (#14)
* chore(package): update jest to version 19.0.1 Closes #13 https://greenkeeper.io/ * update yarn.lock and snapshots with version-header
1 parent c15a182 commit 5d6188f

File tree

8 files changed

+342
-328
lines changed

8 files changed

+342
-328
lines changed

__tests__/__snapshots__/index.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
13
exports[`react-handler should contain the Handler-Component 1`] = `[Function]`;
24

35
exports[`react-handler should contain the SupHandler´s 1`] = `

__tests__/components/__snapshots__/EmptyHandler-test.js.snap

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
13
exports[`EmptyHandler should return null when called without Component and is not empty 1`] = `null`;
24

35
exports[`EmptyHandler should return the EmptyComponent, when the list is empty and called with EmptyComponent 1`] = `
46
<h2
5-
className="empty">
7+
className="empty"
8+
>
69
no results found
710
</h2>
811
`;
912

1013
exports[`EmptyHandler should return the EmptyMessage, when called without checkedProperty 1`] = `
1114
<div
12-
className="handler--empty">
15+
className="handler--empty"
16+
>
1317
no results found
1418
</div>
1519
`;
1620

1721
exports[`EmptyHandler should return the EmptyMessage, when the list is empty 1`] = `
1822
<div
19-
className="handler--empty">
23+
className="handler--empty"
24+
>
2025
no results found
2126
</div>
2227
`;
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
13
exports[`ErrorEmptyHandler should display the Component 1`] = `
24
<div>
35
Test
@@ -6,14 +8,16 @@ exports[`ErrorEmptyHandler should display the Component 1`] = `
68

79
exports[`ErrorEmptyHandler should display the empty-message 1`] = `
810
<div
9-
className="handler--empty">
11+
className="handler--empty"
12+
>
1013
0 Articles found
1114
</div>
1215
`;
1316

1417
exports[`ErrorEmptyHandler should display the error-message 1`] = `
1518
<div
16-
className="handler--error">
19+
className="handler--error"
20+
>
1721
failed to load articles
1822
</div>
1923
`;

__tests__/components/__snapshots__/ErrorHandler-test.js.snap

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
13
exports[`ErrorHandler should return null when called without errorMessage and component 1`] = `null`;
24

35
exports[`ErrorHandler should return the ErrorComponent 1`] = `
46
<h2
5-
className="error">
7+
className="error"
8+
>
69
failed to call api
710
</h2>
811
`;
912

1013
exports[`ErrorHandler should return the ErrorMessage when called without ErrorComponent 1`] = `
1114
<div
12-
className="handler--error">
15+
className="handler--error"
16+
>
1317
failed to call api
1418
</div>
1519
`;

__tests__/components/__snapshots__/Handler-test.js.snap

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
13
exports[`Handler should only return the Component, when loading and showComponentWhileLoading is false 1`] = `
24
<div
3-
className="handler">
5+
className="handler"
6+
>
47
<div>
58
Test
69
</div>
@@ -9,19 +12,23 @@ exports[`Handler should only return the Component, when loading and showComponen
912

1013
exports[`Handler should only return the loading-message, wen showComponentWhileLoading is false 1`] = `
1114
<div
12-
className="handler">
15+
className="handler"
16+
>
1317
<div
14-
className="handler--loading">
18+
className="handler--loading"
19+
>
1520
loading...
1621
</div>
1722
</div>
1823
`;
1924

2025
exports[`Handler should return the loading-message and the component 1`] = `
2126
<div
22-
className="handler">
27+
className="handler"
28+
>
2329
<div
24-
className="handler--loading">
30+
className="handler--loading"
31+
>
2532
loading...
2633
</div>
2734
<div>

__tests__/components/__snapshots__/LoadingHandler-test.js.snap

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
13
exports[`LoadingHandler should return null when called with loading false and no component 1`] = `null`;
24

35
exports[`LoadingHandler should return the LoadingComponent 1`] = `
46
<img
57
alt="loading..."
6-
src="/img/spinner.svg" />
8+
src="/img/spinner.svg"
9+
/>
710
`;
811

912
exports[`LoadingHandler should return the LoadingMessage when called without LoadingComponent 1`] = `
1013
<div
11-
className="handler--loading">
14+
className="handler--loading"
15+
>
1216
loading...
1317
</div>
1418
`;
1519

1620
exports[`LoadingHandler should return the LoadingMessage with given loading message 1`] = `
1721
<div
18-
className="handler--loading">
22+
className="handler--loading"
23+
>
1924
keep keep loading
2025
</div>
2126
`;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"eslint-plugin-import": "^2.2.0",
5151
"eslint-plugin-jsx-a11y": "^4.0.0",
5252
"eslint-plugin-react": "^6.9.0",
53-
"jest": "^18.1.0",
53+
"jest": "^19.0.1",
5454
"react": "^15.4.1",
5555
"react-test-renderer": "^15.4.1",
5656
"rimraf": "^2.5.4",

0 commit comments

Comments
 (0)