Skip to content

Commit

Permalink
test: replace non-existent useStore with useOptionsStore (#2827)
Browse files Browse the repository at this point in the history
  • Loading branch information
noootwo authored Nov 8, 2024
1 parent c6dd94b commit 6e90153
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/pinia/test-dts/mapHelpers.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ expectType<{
}
}>(mapWritableState(useOptionsStore, ['a']))
// @ts-expect-error: only defined in array
mapWritableState(useStore, ['a']).b
mapWritableState(useOptionsStore, ['a']).b

expectType<{
newA: {
Expand All @@ -126,9 +126,9 @@ expectType<{
}>(mapWritableState(useOptionsStore, { newA: 'a' }))

// @ts-expect-error: cannot use a getter
mapWritableState(useStore, ['upper'])
mapWritableState(useOptionsStore, ['upper'])
// @ts-expect-error: cannot use a getter
mapWritableState(useStore, { up: 'upper' })
mapWritableState(useOptionsStore, { up: 'upper' })

const setupStoreWithState = mapState(useSetupStore, ['a'])

Expand Down

0 comments on commit 6e90153

Please sign in to comment.