chore: type [ci skip]
This commit is contained in:
@@ -120,7 +120,7 @@ describe('reactivity/effect/scope', () => {
|
||||
counter.num = 6
|
||||
expect(dummy).toBe(7)
|
||||
|
||||
// nested scope should not be stoped
|
||||
// nested scope should not be stopped
|
||||
expect(doubled).toBe(12)
|
||||
})
|
||||
|
||||
@@ -212,7 +212,7 @@ describe('reactivity/effect/scope', () => {
|
||||
expect(spy).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
it('should derefence child scope from parent scope after stopping child scope (no memleaks)', () => {
|
||||
it('should dereference child scope from parent scope after stopping child scope (no memleaks)', () => {
|
||||
const parent = new EffectScope()
|
||||
const child = parent.run(() => new EffectScope())!
|
||||
expect(parent.scopes!.includes(child)).toBe(true)
|
||||
|
||||
@@ -459,7 +459,7 @@ describe('reactivity/readonly', () => {
|
||||
expect(
|
||||
'Set operation on key "_dirty" failed: target is readonly.'
|
||||
).not.toHaveBeenWarned()
|
||||
// @ts-expect-error - non-existant property
|
||||
// @ts-expect-error - non-existent property
|
||||
rC.randomProperty = true
|
||||
|
||||
expect(
|
||||
@@ -476,7 +476,7 @@ describe('reactivity/readonly', () => {
|
||||
expect(isReadonly(rr.foo)).toBe(true)
|
||||
})
|
||||
|
||||
test('attemptingt to write plain value to a readonly ref nested in a reactive object should fail', () => {
|
||||
test('attempting to write plain value to a readonly ref nested in a reactive object should fail', () => {
|
||||
const r = ref(false)
|
||||
const ror = readonly(r)
|
||||
const obj = reactive({ ror })
|
||||
|
||||
@@ -18,7 +18,7 @@ export class EffectScope {
|
||||
cleanups: (() => void)[] = []
|
||||
|
||||
/**
|
||||
* only assinged by undetached scope
|
||||
* only assigned by undetached scope
|
||||
* @internal
|
||||
*/
|
||||
parent: EffectScope | undefined
|
||||
|
||||
Reference in New Issue
Block a user