Skip to content

Commit 6e90153

Browse files
authored
test: replace non-existent useStore with useOptionsStore (#2827)
1 parent c6dd94b commit 6e90153

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/pinia/test-dts/mapHelpers.test-d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ expectType<{
116116
}
117117
}>(mapWritableState(useOptionsStore, ['a']))
118118
// @ts-expect-error: only defined in array
119-
mapWritableState(useStore, ['a']).b
119+
mapWritableState(useOptionsStore, ['a']).b
120120

121121
expectType<{
122122
newA: {
@@ -126,9 +126,9 @@ expectType<{
126126
}>(mapWritableState(useOptionsStore, { newA: 'a' }))
127127

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

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

0 commit comments

Comments
 (0)