refactor: remove unnecessary conditions and test case
This commit is contained in:
@@ -6,8 +6,7 @@ import {
|
||||
TrackOpTypes,
|
||||
TriggerOpTypes,
|
||||
DebuggerEvent,
|
||||
markRaw,
|
||||
ref
|
||||
markRaw
|
||||
} from '../src/index'
|
||||
import { ITERATE_KEY } from '../src/effect'
|
||||
|
||||
@@ -782,14 +781,4 @@ describe('reactivity/effect', () => {
|
||||
expect(dummy).toBe(0)
|
||||
expect(record).toBeUndefined()
|
||||
})
|
||||
|
||||
it('should handle self dependency mutations', () => {
|
||||
const count = ref(0)
|
||||
effect(() => {
|
||||
count.value++
|
||||
})
|
||||
expect(count.value).toBe(1)
|
||||
count.value = 10
|
||||
expect(count.value).toBe(11)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user