We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1adbd5 + c1a882d commit 80dfb20Copy full SHA for 80dfb20
src/modules/request-recorder/heal-body.js
@@ -20,12 +20,7 @@ const healer = objectScan(['**.*|*'], {
20
const parentActual = context.actual[depth - 1];
21
const childExpected = parentExpected?.[k];
22
const childActual = parentActual?.[k];
23
- if (
24
- parentActual !== undefined
25
- && !(childExpected instanceof Object)
26
- && !(childActual instanceof Object)
27
- && childExpected === childActual
28
- ) {
+ if (childExpected === childActual) {
29
delete parentActual[k];
30
parentActual[property] = value;
31
}
0 commit comments