File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export function onScopeDispose(fn: () => void) {
102102 activeEffectScope . cleanups . push ( fn )
103103 } else if ( __DEV__ ) {
104104 warn (
105- `onDispose () is called when there is no active effect scope` +
105+ `onScopeDispose () is called when there is no active effect scope` +
106106 ` to be associated with.`
107107 )
108108 }
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ describe('reactivity/effect/scope', () => {
190190 expect ( doubled ) . toBe ( undefined )
191191 } )
192192
193- it ( 'should fire onDispose hook' , ( ) => {
193+ it ( 'should fire onScopeDispose hook' , ( ) => {
194194 let dummy = 0
195195
196196 const scope = new EffectScope ( )
@@ -209,7 +209,7 @@ describe('reactivity/effect/scope', () => {
209209 expect ( dummy ) . toBe ( 7 )
210210 } )
211211
212- it ( 'should warn onDispose () is called when there is no active effect scope' , ( ) => {
212+ it ( 'should warn onScopeDispose () is called when there is no active effect scope' , ( ) => {
213213 const spy = jest . fn ( )
214214 const scope = new EffectScope ( )
215215 scope . run ( ( ) => {
@@ -221,7 +221,7 @@ describe('reactivity/effect/scope', () => {
221221 onScopeDispose ( spy )
222222
223223 expect (
224- '[Vue warn]: onDispose () is called when there is no active effect scope to be associated with.'
224+ '[Vue warn]: onScopeDispose () is called when there is no active effect scope to be associated with.'
225225 ) . toHaveBeenWarned ( )
226226
227227 scope . stop ( )
You can’t perform that action at this time.
0 commit comments