Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tadelesh committed Oct 14, 2024
1 parent 267a4f9 commit f1f84af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/http-specs/specs/encode/bytes/mockapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ Scenarios.Encode_Bytes_RequestBody_base64 = createRequestBodyServerTests(
);
Scenarios.Encode_Bytes_RequestBody_base64url = createRequestBodyServerTests(
"/encode/bytes/body/request/base64url",
'"dGVzdA=="',
'"dGVzdA"',
{
"Content-Type": "application/json",
},
'"dGVzdA=="',
'"dGVzdA"',
);

Scenarios.Encode_Bytes_RequestBody_customContentType = createRequestBodyServerTests(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,12 @@ Scenarios.Parameters_BodyOptionality_OptionalExplicit = passOnSuccess([
{
uri: "/parameters/body-optionality/optional-explicit/omit",
method: "post",
request: {
body: {
name: "foo",
},
},
request: {},
response: {
status: 204,
},
handler: (req: MockRequest) => {
req.expect.bodyEquals({ name: "foo" });
req.expect.rawBodyEquals(undefined);
return { status: 204 };
},
kind: "MockApiDefinition",
Expand Down

0 comments on commit f1f84af

Please sign in to comment.