Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
test: add back missed line
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 7, 2022
1 parent 35a1c2e commit 436d7f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/basic/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ describe('composables', () => {
expectTypeOf(useState('test', () => 'hello')).toEqualTypeOf<Ref<string>>()

expectTypeOf(useCookie('test', { default: () => ref(500) })).toEqualTypeOf<Ref<number | null>>()
expectTypeOf(useCookie('test', { default: () => 500 })).toEqualTypeOf<Ref<number | null>>()
useCookie('test').value = null

expectTypeOf(useAsyncData('test', () => Promise.resolve(500), { default: () => ref(500) }).data).toEqualTypeOf<Ref<number | null>>()
Expand Down

0 comments on commit 436d7f2

Please sign in to comment.