Skip to content
Myr

test(validator): fix misspelled identifier in transform type test (#5136)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent aeba9ec · Browse files · 1 file+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−6 removed

  • tests:+6 added−6 removed

1 file+6 added−6 removed

modified:src/validator/validator.test.ts+6 added-6 removed
1355 unmodified lines
1356 orderBy: 'asc',1357 } as {1358 page: number1359 orderBy: 'asc' | 'desc'1360 ordreByWithdefault?: 'asc' | 'desc' | undefined1360 orderByWithdefault?: 'asc' | 'desc' | undefined1361 }1362 }),1363 (c) => {1364 const { page, orderBy, ordreByWithdefault } = c.req.valid('query')1364 const { page, orderBy, orderByWithdefault } = c.req.valid('query')1365 expectTypeOf(page).toEqualTypeOf<number>()1366 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 })1369 }1370 )13711372 type Expected = {
2 unmodified lines
1375 input: {1376 query: {1377 page: string | string[]1378 orderBy: 'asc' | 'desc'1379 ordreByWithdefault?: 'asc' | 'desc' | undefined1379 orderByWithdefault?: 'asc' | 'desc' | undefined1380 }1381 }1382 output: {1383 page: number1384 orderBy: 'asc' | 'desc'1385 ordreByWithdefault: 'asc' | 'desc' | undefined1385 orderByWithdefault: 'asc' | 'desc' | undefined1386 }1387 outputFormat: 'json'1388 status: ContentfulStatusCode1389 }
99 unmodified lines