Skip to content

Commit

Permalink
Merge pull request #69 from lifeomic/fix-tests
Browse files Browse the repository at this point in the history
chore: remove incorrect comments
  • Loading branch information
swain authored Jun 8, 2023
2 parents 0afbba8 + 30f3cbb commit 297cefb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,7 @@ describe('type inference', () => {
// API should enforce a string, but the code should receive a number.
message: z.string().transform((val) => Number(val)),
}),
response: z.object({
// The code should return a number, and the API should return a string.
message: z.number(),
}),
response: z.object({ message: z.number() }),
})
.implement('GET /items', (ctx) => {
// this statement helps us validate that the message is typed as a Number
Expand All @@ -284,10 +281,7 @@ describe('type inference', () => {
// API should enforce a string, but the code should receive a number.
message: z.string().transform((val) => Number(val)),
}),
response: z.object({
// The code should return a number, and the API should return a string.
message: z.number(),
}),
response: z.object({ message: z.number() }),
})
.implement('POST /items', (ctx) => {
// this statement helps us validate that the message is typed as a Number
Expand Down

0 comments on commit 297cefb

Please sign in to comment.