Преглед изворни кода

test(reactivity): remove obsolete effect scope off regression

Origin-main-commit: e7659beafc5407e892fa70f3f4ade80263b0905d
daiwei пре 1 месец
родитељ
комит
46cea4dc9a
1 измењених фајлова са 0 додато и 19 уклоњено
  1. 0 19
      packages/reactivity/__tests__/effectScope.spec.ts

+ 0 - 19
packages/reactivity/__tests__/effectScope.spec.ts

@@ -297,25 +297,6 @@ describe('reactivity/effect/scope', () => {
     })
   })
 
-  it('calling .off() out of order should unlink the scope from the active chain', () => {
-    const parentScope = effectScope(true)
-    const firstScope = effectScope(true)
-    const secondScope = effectScope(true)
-
-    parentScope.on()
-    firstScope.on()
-    secondScope.on()
-
-    firstScope.off()
-    expect(getCurrentScope()).toBe(secondScope)
-
-    secondScope.off()
-    expect(getCurrentScope()).toBe(parentScope)
-
-    parentScope.off()
-    expect(getCurrentScope()).toBeUndefined()
-  })
-
   it('should pause/resume EffectScope', async () => {
     const counter = reactive({ num: 0 })
     const fnSpy = vi.fn(() => counter.num)