test: align tests with sample plugin changes

Refs #8577
This commit is contained in:
Vladimir Gorej
2023-05-30 15:29:33 +02:00
committed by Vladimír Gorej
parent 1ce9ce0cda
commit 2ce9d08af7
5 changed files with 306 additions and 138 deletions

View File

@@ -103,7 +103,7 @@ export const selectDefaultRequestBodyValue =
}
export const hasUserEditedBody = onlyOAS3((state, path, method) => (system) => {
const { oas3Selectors, specSelectors } = system
const { oas3Selectors, specSelectors, fn } = system
let userHasEditedBody = false
const currentMediaType = oas3Selectors.requestContentType(path, method)
@@ -147,7 +147,8 @@ export const hasUserEditedBody = onlyOAS3((state, path, method) => (system) => {
method,
"requestBody",
"requestBody"
)
),
fn
)
userHasEditedBody =
!!userEditedRequestBody &&