Skip to content

Commit

Permalink
update snapshots to match new format
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcelhaney committed Sep 6, 2023
1 parent 1eba6c5 commit fad983e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
10 changes: 5 additions & 5 deletions test/__snapshots__/black-box.test.js.snap
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`black box test compiles kitty.ts 1`] = `
{
"data": [
Object {
"data": Array [
101,
120,
112,
Expand Down Expand Up @@ -81,8 +81,8 @@ exports[`black box test compiles kitty.ts 1`] = `
`;

exports[`black box test creates a file for the /hello/kitty path 1`] = `
{
"data": [
Object {
"data": Array [
105,
109,
112,
Expand Down Expand Up @@ -236,4 +236,4 @@ exports[`black box test creates a file for the /hello/kitty path 1`] = `
}
`;

exports[`black box test responds to a GET request 1`] = `"<img src="https://upload.wikimedia.org/wikipedia/en/0/05/Hello_kitty_character_portrait.png">"`;
exports[`black box test responds to a GET request 1`] = `"<img src=\\"https://upload.wikimedia.org/wikipedia/en/0/05/Hello_kitty_character_portrait.png\\">"`;
Expand Up @@ -18,7 +18,7 @@ exports[`an OperationTypeCoder falls back to root level produces (OpenAPI 2) 1`]
[statusCode in HttpStatusCode]: {
headers: {};
content: {
"text/plain": {
\\"text/plain\\": {
schema: Type;
};
};
Expand All @@ -28,10 +28,10 @@ exports[`an OperationTypeCoder falls back to root level produces (OpenAPI 2) 1`]
}) =>
| {
status: number | undefined;
contentType?: "text/plain";
contentType?: \\"text/plain\\";
body?: Type;
}
| { status: 415; contentType: "text/plain"; body: string }
| { status: 415; contentType: \\"text/plain\\"; body: string }
| void;
"
`;
Expand All @@ -45,32 +45,32 @@ exports[`an OperationTypeCoder generates a complex post operation (OpenAPI 2 wit
context,
proxy,
}: {
query: { "name?": string };
path: { "id?": string };
header: { "name?": string };
query: { \\"name?\\": string };
path: { \\"id?\\": string };
header: { \\"name?\\": string };
body: Type;
context: typeof default;
response: ResponseBuilderFactory<{
200: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
};
400: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
};
[statusCode in Exclude<HttpStatusCode, 200 | 400>]: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
Expand All @@ -80,20 +80,20 @@ exports[`an OperationTypeCoder generates a complex post operation (OpenAPI 2 wit
}) =>
| {
status: 200;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| {
status: 400;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| {
status: number | undefined;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| { status: 415; contentType: "text/plain"; body: string }
| { status: 415; contentType: \\"text/plain\\"; body: string }
| void;
"
`;
Expand All @@ -107,32 +107,32 @@ exports[`an OperationTypeCoder generates a complex post operation (OpenAPI 2) 1`
context,
proxy,
}: {
query: { "name?": string };
path: { "id?": string };
header: { "name?": string };
query: { \\"name?\\": string };
path: { \\"id?\\": string };
header: { \\"name?\\": string };
body: Type;
context: typeof default;
response: ResponseBuilderFactory<{
200: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
};
400: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
};
[statusCode in Exclude<HttpStatusCode, 200 | 400>]: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
Expand All @@ -142,20 +142,20 @@ exports[`an OperationTypeCoder generates a complex post operation (OpenAPI 2) 1`
}) =>
| {
status: 200;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| {
status: 400;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| {
status: number | undefined;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| { status: 415; contentType: "text/plain"; body: string }
| { status: 415; contentType: \\"text/plain\\"; body: string }
| void;
"
`;
Expand All @@ -169,32 +169,32 @@ exports[`an OperationTypeCoder generates a complex post operation 1`] = `
context,
proxy,
}: {
query: { "name?": string };
path: { "id?": string };
header: { "name?": string };
query: { \\"name?\\": string };
path: { \\"id?\\": string };
header: { \\"name?\\": string };
body: Type;
context: typeof default;
response: ResponseBuilderFactory<{
200: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
};
400: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
};
[statusCode in Exclude<HttpStatusCode, 200 | 400>]: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
Expand All @@ -204,20 +204,20 @@ exports[`an OperationTypeCoder generates a complex post operation 1`] = `
}) =>
| {
status: 200;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| {
status: 400;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| {
status: number | undefined;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| { status: 415; contentType: "text/plain"; body: string }
| { status: 415; contentType: \\"text/plain\\"; body: string }
| void;
"
`;
Expand All @@ -240,7 +240,7 @@ exports[`an OperationTypeCoder generates a simple get operation (OpenAPI 2) 1`]
[statusCode in HttpStatusCode]: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
Expand All @@ -250,10 +250,10 @@ exports[`an OperationTypeCoder generates a simple get operation (OpenAPI 2) 1`]
}) =>
| {
status: number | undefined;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| { status: 415; contentType: "text/plain"; body: string }
| { status: 415; contentType: \\"text/plain\\"; body: string }
| void;
"
`;
Expand All @@ -276,7 +276,7 @@ exports[`an OperationTypeCoder generates a simple get operation 1`] = `
[statusCode in HttpStatusCode]: {
headers: {};
content: {
"application/json": {
\\"application/json\\": {
schema: Type;
};
};
Expand All @@ -286,10 +286,10 @@ exports[`an OperationTypeCoder generates a simple get operation 1`] = `
}) =>
| {
status: number | undefined;
contentType?: "application/json";
contentType?: \\"application/json\\";
body?: Type;
}
| { status: 415; contentType: "text/plain"; body: string }
| { status: 415; contentType: \\"text/plain\\"; body: string }
| void;
"
`;
Expand Up @@ -6,7 +6,7 @@ exports[`a ParametersTypeCoder generates type never when there is no match 1`] =
`;

exports[`a ParametersTypeCoder generates types for parameters (OAS2): header 1`] = `
"type TestType = { "name?": string };
"type TestType = { \\"name?\\": string };
"
`;

Expand All @@ -16,12 +16,12 @@ exports[`a ParametersTypeCoder generates types for parameters (OAS2): path 1`] =
`;

exports[`a ParametersTypeCoder generates types for parameters (OAS2): query 1`] = `
"type TestType = { "name?": string; "age?": string };
"type TestType = { \\"name?\\": string; \\"age?\\": string };
"
`;

exports[`a ParametersTypeCoder generates types for parameters: header 1`] = `
"type TestType = { "name?": string };
"type TestType = { \\"name?\\": string };
"
`;

Expand All @@ -31,6 +31,6 @@ exports[`a ParametersTypeCoder generates types for parameters: path 1`] = `
`;

exports[`a ParametersTypeCoder generates types for parameters: query 1`] = `
"type TestType = { "name?": string; "age?": string };
"type TestType = { \\"name?\\": string; \\"age?\\": string };
"
`;

0 comments on commit fad983e

Please sign in to comment.