Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tpdewolf committed Apr 11, 2021
1 parent ba45ac2 commit bea7a53
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
exports[`scripts/import-open-api should parse correctly petstore-expanded.yaml 1`] = `
"/* Generated by oats-generator */
export const SPEC_VERSION = \\"1.0.0\\";
/**
* A pet.
*/
Expand Down
40 changes: 32 additions & 8 deletions src/scripts/tests/import-open-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,10 @@ describe("scripts/import-open-api", () => {
"paramsInPath": Array [
"id",
],
"paramsTypes": "id: string",
"paramsTypes": "/**
* The id of the project
*/
id: string",
"route": "/fields/\${id}",
"typeNames": Object {
"body": "any",
Expand Down Expand Up @@ -1625,7 +1628,10 @@ describe("scripts/import-open-api", () => {
"paramsInPath": Array [
"id",
],
"paramsTypes": "id: string",
"paramsTypes": "/**
* The id of the project
*/
id: string",
"route": "/fields/\${id}",
"typeNames": Object {
"body": "any",
Expand Down Expand Up @@ -1760,7 +1766,10 @@ describe("scripts/import-open-api", () => {
"paramsInPath": Array [
"useCaseId",
],
"paramsTypes": "useCaseId: string",
"paramsTypes": "/**
* The id of the use case
*/
useCaseId: string",
"route": "/use-cases/\${useCaseId}",
"typeNames": Object {
"body": "UseCaseInstance",
Expand Down Expand Up @@ -1907,7 +1916,10 @@ describe("scripts/import-open-api", () => {
"paramsInPath": Array [
"useCaseId",
],
"paramsTypes": "useCaseId: string",
"paramsTypes": "/**
* The id of the use case
*/
useCaseId: string",
"route": "/use-cases/\${useCaseId}",
"typeNames": Object {
"body": "UpdateUseCaseRequestBody",
Expand Down Expand Up @@ -2076,7 +2088,10 @@ describe("scripts/import-open-api", () => {
"paramsInPath": Array [
"useCaseId",
],
"paramsTypes": "useCaseId: string",
"paramsTypes": "/**
* The id of the use case
*/
useCaseId: string",
"route": "/use-cases/\${useCaseId}",
"typeNames": Object {
"body": "UseCaseInstance",
Expand Down Expand Up @@ -2248,7 +2263,10 @@ describe("scripts/import-open-api", () => {
"paramsInPath": Array [
"useCaseId",
],
"paramsTypes": "useCaseId: string",
"paramsTypes": "/**
* The id of the use case
*/
useCaseId: string",
"route": "/use-cases/\${useCaseId}",
"typeNames": Object {
"body": "UseCaseInstance",
Expand Down Expand Up @@ -2366,7 +2384,10 @@ describe("scripts/import-open-api", () => {
"paramsInPath": Array [
"useCaseId",
],
"paramsTypes": "useCaseId: string",
"paramsTypes": "/**
* The id of the use case
*/
useCaseId: string",
"route": "/use-cases/\${useCaseId}",
"typeNames": Object {
"body": "any",
Expand Down Expand Up @@ -2478,7 +2499,10 @@ describe("scripts/import-open-api", () => {
"paramsInPath": Array [
"useCaseId",
],
"paramsTypes": "useCaseId: string",
"paramsTypes": "/**
* The id of the use case
*/
useCaseId: string",
"route": "/use-cases/\${useCaseId}/secret",
"typeNames": Object {
"body": "any",
Expand Down

0 comments on commit bea7a53

Please sign in to comment.