Skip to content

Commit 7f43ee5

Browse files
author
Joao Lopes
committed
[ctrlplusb#29] Regenerated snapshots
1 parent 73b2f52 commit 7f43ee5

File tree

1 file changed

+60
-3
lines changed

1 file changed

+60
-3
lines changed

src/__tests__/__snapshots__/integration.test.js.snap

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`integration tests render server and client 1`] = `"<div><div>Hello<div><div>World</div></div></div><div>Goodbye</div></div>"`;
3+
exports[`integration tests render server and client 1`] = `"<div><div>Hello<div><div>World</div></div></div><div>Goodbye</div><div>Oh noes!</div></div>"`;
44

55
exports[`integration tests render server and client 2`] = `
66
Object {
@@ -14,6 +14,23 @@ Object {
1414
"3": Object {
1515
"data": "Goodbye",
1616
},
17+
"4": Object {
18+
"error": Object {
19+
"message": "Oh noes!",
20+
"stack": "Error: Oh noes!
21+
at work (/Users/joaol/code/react-jobs/src/__tests__/integration.test.js:33:53)
22+
at ComponentWithJob.resolveWork.props [as resolveWork] (/Users/joaol/code/react-jobs/src/withJob.js:196:580)
23+
at ComponentWithJob.asyncBootstrap (/Users/joaol/code/react-jobs/src/withJob.js:65:54)
24+
at visitor (/Users/joaol/code/react-jobs/node_modules/react-async-bootstrapper/commonjs/index.js:17:23)
25+
at /Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:163:12
26+
at new Promise (<anonymous>)
27+
at reactTreeWalker (/Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:70:10)
28+
at mapper (/Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:88:29)
29+
at /Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:52:28
30+
at /Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:38:14
31+
at <anonymous>",
32+
},
33+
},
1734
},
1835
}
1936
`;
@@ -57,7 +74,31 @@ exports[`integration tests render server and client 3`] = `
5774
</div>
5875
</ResultRenderer>
5976
</WithJob(ResultRenderer)>
60-
<WithJob(ResultRenderer) />
77+
<WithJob(ResultRenderer)>
78+
<ErrorComponent
79+
error={
80+
Object {
81+
"message": "Oh noes!",
82+
"stack": "Error: Oh noes!
83+
at work (/Users/joaol/code/react-jobs/src/__tests__/integration.test.js:33:53)
84+
at ComponentWithJob.resolveWork.props [as resolveWork] (/Users/joaol/code/react-jobs/src/withJob.js:196:580)
85+
at ComponentWithJob.asyncBootstrap (/Users/joaol/code/react-jobs/src/withJob.js:65:54)
86+
at visitor (/Users/joaol/code/react-jobs/node_modules/react-async-bootstrapper/commonjs/index.js:17:23)
87+
at /Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:163:12
88+
at new Promise (<anonymous>)
89+
at reactTreeWalker (/Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:70:10)
90+
at mapper (/Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:88:29)
91+
at /Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:52:28
92+
at /Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:38:14
93+
at <anonymous>",
94+
}
95+
}
96+
>
97+
<div>
98+
Oh noes!
99+
</div>
100+
</ErrorComponent>
101+
</WithJob(ResultRenderer)>
61102
</div>
62103
</JobProvider>
63104
`;
@@ -103,7 +144,23 @@ exports[`integration tests render server and client 4`] = `
103144
</WithJob(ResultRenderer)>
104145
<WithJob(ResultRenderer)>
105146
<ErrorComponent
106-
error={[Error: Oh noes!]}
147+
error={
148+
Object {
149+
"message": "Oh noes!",
150+
"stack": "Error: Oh noes!
151+
at work (/Users/joaol/code/react-jobs/src/__tests__/integration.test.js:33:53)
152+
at ComponentWithJob.resolveWork.props [as resolveWork] (/Users/joaol/code/react-jobs/src/withJob.js:196:580)
153+
at ComponentWithJob.asyncBootstrap (/Users/joaol/code/react-jobs/src/withJob.js:65:54)
154+
at visitor (/Users/joaol/code/react-jobs/node_modules/react-async-bootstrapper/commonjs/index.js:17:23)
155+
at /Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:163:12
156+
at new Promise (<anonymous>)
157+
at reactTreeWalker (/Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:70:10)
158+
at mapper (/Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:88:29)
159+
at /Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:52:28
160+
at /Users/joaol/code/react-jobs/node_modules/react-tree-walker/commonjs/index.js:38:14
161+
at <anonymous>",
162+
}
163+
}
107164
>
108165
<div>
109166
Oh noes!

0 commit comments

Comments
 (0)