@@ -24,7 +24,7 @@ describe('compiler + runtime integration', () => {
24
24
mounted : jest . fn ( ) ,
25
25
activated : jest . fn ( ) ,
26
26
deactivated : jest . fn ( ) ,
27
- destroyed : jest . fn ( )
27
+ unmounted : jest . fn ( )
28
28
}
29
29
30
30
const toggle = ref ( true )
@@ -50,7 +50,7 @@ describe('compiler + runtime integration', () => {
50
50
expect ( one . mounted ) . toHaveBeenCalledTimes ( 1 )
51
51
expect ( one . activated ) . toHaveBeenCalledTimes ( 1 )
52
52
expect ( one . deactivated ) . toHaveBeenCalledTimes ( 0 )
53
- expect ( one . destroyed ) . toHaveBeenCalledTimes ( 0 )
53
+ expect ( one . unmounted ) . toHaveBeenCalledTimes ( 0 )
54
54
55
55
toggle . value = false
56
56
await nextTick ( )
@@ -59,7 +59,7 @@ describe('compiler + runtime integration', () => {
59
59
expect ( one . mounted ) . toHaveBeenCalledTimes ( 1 )
60
60
expect ( one . activated ) . toHaveBeenCalledTimes ( 1 )
61
61
expect ( one . deactivated ) . toHaveBeenCalledTimes ( 1 )
62
- expect ( one . destroyed ) . toHaveBeenCalledTimes ( 0 )
62
+ expect ( one . unmounted ) . toHaveBeenCalledTimes ( 0 )
63
63
64
64
toggle . value = true
65
65
await nextTick ( )
@@ -68,7 +68,7 @@ describe('compiler + runtime integration', () => {
68
68
expect ( one . mounted ) . toHaveBeenCalledTimes ( 1 )
69
69
expect ( one . activated ) . toHaveBeenCalledTimes ( 2 )
70
70
expect ( one . deactivated ) . toHaveBeenCalledTimes ( 1 )
71
- expect ( one . destroyed ) . toHaveBeenCalledTimes ( 0 )
71
+ expect ( one . unmounted ) . toHaveBeenCalledTimes ( 0 )
72
72
} )
73
73
74
74
it ( 'should support runtime template via CSS ID selector' , ( ) => {
0 commit comments