Skip to content

Commit

Permalink
Merge pull request #1414 from blackflux/dev
Browse files Browse the repository at this point in the history
[Gally]: master <- dev
  • Loading branch information
simlu authored Dec 15, 2023
2 parents c71dc7b + 4ce05ab commit 651973a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/request-recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ export default (opts) => {
if (anyFlagPresent(['magic', 'body'])) {
const idx = pendingMocks.findIndex((m) => m.idx === scopeIdx);
const requestBody = tryParseJson(body);
pendingMocks[idx].record.body = nullAsString(requestBody);
const requestBodyStr = nullAsString(requestBody);
if (!isEqual(scope.body, requestBodyStr)) {
pendingMocks[idx].record.body = requestBodyStr;
}
return scope.body;
}
return body;
Expand Down

0 comments on commit 651973a

Please sign in to comment.