Skip to content

Commit 2328188

Browse files
committed
chore: fix CI
1 parent d2ec8e4 commit 2328188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vue-redux/tests/use-selector.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe('Vue', () => {
119119

120120
const Parent = defineComponent(() => {
121121
const contextVal = inject(ContextKey)
122-
appSubscription = contextVal && contextVal.subscription
122+
appSubscription = contextVal ? contextVal.subscription : null
123123
const count = useNormalSelector((s) => s.count)
124124
return () => (count.value === 1 ? <Child /> : null)
125125
})
@@ -151,7 +151,7 @@ describe('Vue', () => {
151151

152152
const Parent = defineComponent(() => {
153153
const contextVal = inject(ContextKey)
154-
appSubscription = contextVal && contextVal.subscription
154+
appSubscription = contextVal ? contextVal.subscription : null
155155
const count = useNormalSelector((s) => s.count)
156156
return () => (count.value === 0 ? <Child /> : null)
157157
})

0 commit comments

Comments
 (0)