Skip to content

Commit d4049cc

Browse files
committed
Fix test.
1 parent 8dc0d0b commit d4049cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

express-zod-api/tests/routing.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe("Routing", () => {
3939
cors: true,
4040
startupLogo: false,
4141
wrongMethodBehavior,
42-
methodLikeRouteBehavior: "route" as const,
42+
methodLikeRouteBehavior: "path" as const,
4343
};
4444
const factory = new EndpointsFactory(defaultResultHandler);
4545
const getEndpoint = factory.build({
@@ -59,7 +59,7 @@ describe("Routing", () => {
5959
const routing: Routing = {
6060
v1: {
6161
user: {
62-
get: getEndpoint, // should be treated as a route (methodLikeRouteBehavior: "route")
62+
get: getEndpoint, // should be treated as a path
6363
set: postEndpoint,
6464
universal: getAndPostEndpoint,
6565
},

0 commit comments

Comments
 (0)