Skip to content

Commit 7b1c191

Browse files
committed
test: improve test case
1 parent b0fad8f commit 7b1c191

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/runtime-core/__tests__/apiWatch.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,8 @@ describe('api: watch', () => {
11381138
const root = nodeOps.createElement('div')
11391139
createApp(Comp).mount(root)
11401140
expect(instance!.scope.effects.length).toBe(3)
1141+
11411142
instance!.scope.stop()
1143+
expect(instance!.scope.effects[0].active).toBe(false)
11421144
})
11431145
})

0 commit comments

Comments
 (0)