Skip to content

Commit a2f515e

Browse files
committed
update other snapshots
1 parent 21fd945 commit a2f515e

3 files changed

Lines changed: 20 additions & 24 deletions

File tree

integration-tests/__tests__/__snapshots__/detect_open_handles.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports[`prints out info about open handlers 1`] = `
2222
> 7 | app.listen({host: 'localhost', port: 0});
2323
| ^
2424
8 |
25-
25+
2626
at Object.<anonymous> (server.js:7:5)
2727
at Object.<anonymous> (__tests__/test.js:3:1)"
2828
`;

packages/expect/src/__tests__/__snapshots__/to_throw_matchers.test.js.snap

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exports[`.toThrow() error class threw, but class did not match 1`] = `
1414
Expected the function to throw an error of type:
1515
<green>\\"Err2\\"</>
1616
Instead, it threw:
17-
<red> Error </>
17+
<red> Error</>
1818
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
1919
`;
2020
@@ -24,7 +24,7 @@ exports[`.toThrow() error class threw, but should not have 1`] = `
2424
Expected the function not to throw an error of type:
2525
<green>\\"Err\\"</>
2626
Instead, it threw:
27-
<red> Error </>
27+
<red> Error</>
2828
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
2929
`;
3030
@@ -56,7 +56,7 @@ exports[`.toThrow() promise/async throws if Error-like object is returned threw,
5656
Expected the function to throw an error of type:
5757
"Err2"
5858
Instead, it threw:
59-
[31m Error [39m
59+
[31m Error[39m
6060
 at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)]
6161
`;
6262
@@ -65,7 +65,7 @@ exports[`.toThrow() promise/async throws if Error-like object is returned threw,
6565
6666
Expected the function not to throw an error.
6767
Instead, it threw:
68-
[31m Error [39m
68+
[31m Error[39m
6969
 at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)]
7070
`;
7171
@@ -83,7 +83,7 @@ exports[`.toThrow() regexp threw, but message did not match 1`] = `
8383
Expected the function to throw an error matching:
8484
<green>/banana/</>
8585
Instead, it threw:
86-
<red> Error </>
86+
<red> Error</>
8787
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
8888
`;
8989
@@ -93,7 +93,7 @@ exports[`.toThrow() regexp threw, but should not have 1`] = `
9393
Expected the function not to throw an error matching:
9494
<green>/apple/</>
9595
Instead, it threw:
96-
<red> Error </>
96+
<red> Error</>
9797
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
9898
`;
9999
@@ -111,7 +111,7 @@ exports[`.toThrow() strings threw, but message did not match 1`] = `
111111
Expected the function to throw an error matching:
112112
<green>\\"banana\\"</>
113113
Instead, it threw:
114-
<red> Error </>
114+
<red> Error</>
115115
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
116116
`;
117117
@@ -121,7 +121,7 @@ exports[`.toThrow() strings threw, but should not have 1`] = `
121121
Expected the function not to throw an error matching:
122122
<green>\\"apple\\"</>
123123
Instead, it threw:
124-
<red> Error </>
124+
<red> Error</>
125125
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
126126
`;
127127
@@ -139,7 +139,7 @@ exports[`.toThrowError() error class threw, but class did not match 1`] = `
139139
Expected the function to throw an error of type:
140140
<green>\\"Err2\\"</>
141141
Instead, it threw:
142-
<red> Error </>
142+
<red> Error</>
143143
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
144144
`;
145145
@@ -149,7 +149,7 @@ exports[`.toThrowError() error class threw, but should not have 1`] = `
149149
Expected the function not to throw an error of type:
150150
<green>\\"Err\\"</>
151151
Instead, it threw:
152-
<red> Error </>
152+
<red> Error</>
153153
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
154154
`;
155155
@@ -181,7 +181,7 @@ exports[`.toThrowError() promise/async throws if Error-like object is returned t
181181
Expected the function to throw an error of type:
182182
"Err2"
183183
Instead, it threw:
184-
[31m Error [39m
184+
[31m Error[39m
185185
 at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)]
186186
`;
187187
@@ -190,7 +190,7 @@ exports[`.toThrowError() promise/async throws if Error-like object is returned t
190190
191191
Expected the function not to throw an error.
192192
Instead, it threw:
193-
[31m Error [39m
193+
[31m Error[39m
194194
 at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)]
195195
`;
196196
@@ -208,7 +208,7 @@ exports[`.toThrowError() regexp threw, but message did not match 1`] = `
208208
Expected the function to throw an error matching:
209209
<green>/banana/</>
210210
Instead, it threw:
211-
<red> Error </>
211+
<red> Error</>
212212
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
213213
`;
214214
@@ -218,7 +218,7 @@ exports[`.toThrowError() regexp threw, but should not have 1`] = `
218218
Expected the function not to throw an error matching:
219219
<green>/apple/</>
220220
Instead, it threw:
221-
<red> Error </>
221+
<red> Error</>
222222
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
223223
`;
224224
@@ -236,7 +236,7 @@ exports[`.toThrowError() strings threw, but message did not match 1`] = `
236236
Expected the function to throw an error matching:
237237
<green>\\"banana\\"</>
238238
Instead, it threw:
239-
<red> Error </>
239+
<red> Error</>
240240
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
241241
`;
242242
@@ -246,6 +246,6 @@ exports[`.toThrowError() strings threw, but should not have 1`] = `
246246
Expected the function not to throw an error matching:
247247
<green>\\"apple\\"</>
248248
Instead, it threw:
249-
<red> Error </>
249+
<red> Error</>
250250
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
251251
`;

packages/jest-message-util/src/__tests__/__snapshots__/messages.test.js.snap

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,16 @@ exports[`formatStackTrace should strip node internals 1`] = `
1717
\\"\\"
1818
type:
1919
\\"string\\"
20-
<dim> </>
21-
<dim> </>
20+
<dim></>
2221
<dim> <dim>at Object.it (<dim>__tests__/test.js<dim>:8:14)<dim></>
23-
<dim> </>
2422
"
2523
`;
2624
2725
exports[`should exclude jasmine from stack trace for Unix paths. 1`] = `
2826
"<bold><red> <bold>● <bold>Unix test</></>
2927
3028
at stack (../jest-jasmine2/build/jasmine-2.4.1.js:1580:17)
31-
<dim> </>
29+
<dim></>
3230
<dim> <dim>at Object.addResult (<dim>../jest-jasmine2/build/jasmine-2.4.1.js<dim>:1550:14)<dim></>
3331
<dim> <dim>at Object.it (<dim>build/__tests__/messages-test.js<dim>:45:41)<dim></>
3432
"
@@ -44,10 +42,8 @@ exports[`should not exclude vendor from stack trace 1`] = `
4442
\\"\\"
4543
type:
4644
\\"string\\"
47-
<dim> </>
48-
<dim> </>
45+
<dim></>
4946
<dim> <dim>at Object.it (<dim>__tests__/vendor/cool_test.js<dim>:6:666)<dim></>
5047
<dim> <dim>at Object.asyncFn (<dim>__tests__/vendor/sulu/node_modules/sulu-content-bundle/best_component.js<dim>:1:5)<dim></>
51-
<dim> </>
5248
"
5349
`;

0 commit comments

Comments
 (0)