chore: type [ci skip]

This commit is contained in:
那里好脏不可以
2022-05-10 10:51:51 +08:00
committed by GitHub
parent 181872f744
commit 6042ab0f2f
22 changed files with 32 additions and 32 deletions

View File

@@ -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)

View File

@@ -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 })