Skip to content

Commit 59653ac

Browse files
authored
fix: typos (#788)
Co-authored-by: webfansplz <>
1 parent 7260acc commit 59653ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/apis/effectScope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

test/v3/reactivity/effectScope.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)