Skip to content

Commit 21ab4c0

Browse files
authored
fix tests
1 parent 2e7c39b commit 21ab4c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/openapi-typescript/test/transform/paths-enum.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe("transformPathsObjectToEnum", () => {
3838
},
3939
},
4040
want: `export enum ApiPaths {
41-
GetApiV1User = "/api/v1/user/:user_id"
41+
GetApiV1User = "/api/v1/user/{user_id}"
4242
}`,
4343
},
4444
],
@@ -62,7 +62,7 @@ describe("transformPathsObjectToEnum", () => {
6262
},
6363
},
6464
want: `export enum ApiPaths {
65-
GetUserById = "/api/v1/user/:user_id"
65+
GetUserById = "/api/v1/user/{user_id}"
6666
}`,
6767
},
6868
],
@@ -89,8 +89,8 @@ describe("transformPathsObjectToEnum", () => {
8989
},
9090
},
9191
want: `export enum ApiPaths {
92-
GetUserById = "/api/v1/user/:user_id",
93-
PostApiV1User = "/api/v1/user/:user_id"
92+
GetUserById = "/api/v1/user/{user_id}",
93+
PostApiV1User = "/api/v1/user/{user_id}"
9494
}`,
9595
},
9696
],

0 commit comments

Comments
 (0)