Skip to content

Commit 64c613a

Browse files
authored
test(validator): fix misspelled identifier in transform type test (#5136)
1 parent aeba9ec commit 64c613a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎src/validator/validator.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,15 +1357,15 @@ describe('Transform', () => {
13571357
} as {
13581358
page: number
13591359
orderBy: 'asc' | 'desc'
1360-
ordreByWithdefault?: 'asc' | 'desc' | undefined
1360+
orderByWithdefault?: 'asc' | 'desc' | undefined
13611361
}
13621362
}),
13631363
(c) => {
1364-
const { page, orderBy, ordreByWithdefault } = c.req.valid('query')
1364+
const { page, orderBy, orderByWithdefault } = c.req.valid('query')
13651365
expectTypeOf(page).toEqualTypeOf<number>()
13661366
expectTypeOf(orderBy).toEqualTypeOf<'asc' | 'desc'>()
1367-
expectTypeOf(ordreByWithdefault).toEqualTypeOf<'asc' | 'desc' | undefined>()
1368-
return c.json({ page, orderBy, ordreByWithdefault })
1367+
expectTypeOf(orderByWithdefault).toEqualTypeOf<'asc' | 'desc' | undefined>()
1368+
return c.json({ page, orderBy, orderByWithdefault })
13691369
}
13701370
)
13711371

@@ -1376,13 +1376,13 @@ describe('Transform', () => {
13761376
query: {
13771377
page: string | string[]
13781378
orderBy: 'asc' | 'desc'
1379-
ordreByWithdefault?: 'asc' | 'desc' | undefined
1379+
orderByWithdefault?: 'asc' | 'desc' | undefined
13801380
}
13811381
}
13821382
output: {
13831383
page: number
13841384
orderBy: 'asc' | 'desc'
1385-
ordreByWithdefault: 'asc' | 'desc' | undefined
1385+
orderByWithdefault: 'asc' | 'desc' | undefined
13861386
}
13871387
outputFormat: 'json'
13881388
status: ContentfulStatusCode

0 commit comments

Comments
 (0)