Commit 085c344
assert: show the diff when deep comparing data with a custom message
Fixes: #48465
PR-URL: #54759
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 81ad69d commit 085c344Copy full SHA for 085c344
File tree
Expand file treeCollapse file tree
2 files changed
+25
-7
lines changedOpen diff view settings
Filter options
- lib/internal/assert
- test/parallel
Expand file treeCollapse file tree
2 files changed
+25
-7
lines changedOpen diff view settings
Collapse file
lib/internal/assert/assertion_error.js
Copy file name to clipboardExpand all lines: lib/internal/assert/assertion_error.js+12-5Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
72 | 72 | |
73 | 73 | |
74 | 74 | |
75 | | - |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
76 | 80 | |
77 | 81 | |
78 | 82 | |
| ||
110 | 114 | |
111 | 115 | |
112 | 116 | |
113 | | - |
| 117 | + |
114 | 118 | |
115 | 119 | |
116 | 120 | |
| ||
184 | 188 | |
185 | 189 | |
186 | 190 | |
187 | | - |
188 | | - |
| 191 | + |
189 | 192 | |
190 | 193 | |
191 | 194 | |
| ||
337 | 340 | |
338 | 341 | |
339 | 342 | |
340 | | - |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
341 | 348 | |
342 | 349 | |
343 | 350 | |
|
Collapse file
test/parallel/test-assert.js
Copy file name to clipboardExpand all lines: test/parallel/test-assert.js+13-2Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
391 | 391 | |
392 | 392 | |
393 | 393 | |
394 | | - |
| 394 | + |
395 | 395 | |
396 | 396 | |
397 | 397 | |
| ||
1203 | 1203 | |
1204 | 1204 | |
1205 | 1205 | |
1206 | | - |
| 1206 | + |
1207 | 1207 | |
1208 | 1208 | |
1209 | 1209 | |
| ||
1250 | 1250 | |
1251 | 1251 | |
1252 | 1252 | |
| 1253 | + |
| 1254 | + |
| 1255 | + |
| 1256 | + |
| 1257 | + |
| 1258 | + |
| 1259 | + |
| 1260 | + |
| 1261 | + |
| 1262 | + |
| 1263 | + |
1253 | 1264 | |
1254 | 1265 | |
1255 | 1266 | |
|
0 commit comments