Skip to content

Commit 7290307

Browse files
committed
test: add additional case
1 parent 357e1e4 commit 7290307

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/fixture/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,13 @@ describe("API routes", () => {
263263
>();
264264
})
265265

266-
it('produces correct $fetch.raw', async () => {
267-
const r = await $fetch.raw("/api/serialized/tuple")
266+
it('produces correct $fetch.raw', () => {
268267
expectTypeOf($fetch.raw("/api/serialized/tuple")).toEqualTypeOf<
269268
Promise<FetchResponse<[string, string]>>
270269
>();
270+
expectTypeOf($fetch.raw("/unknown")).toEqualTypeOf<
271+
Promise<FetchResponse<unknown>>
272+
>();
271273
})
272274

273275
it('produces correctly typed new instance with $fetch.create', () => {

0 commit comments

Comments
 (0)