diff --git a/packages/reactivity/__tests__/computed.spec.ts b/packages/reactivity/__tests__/computed.spec.ts index b831abf5618..0b5f98bbd68 100644 --- a/packages/reactivity/__tests__/computed.spec.ts +++ b/packages/reactivity/__tests__/computed.spec.ts @@ -769,15 +769,15 @@ describe('reactivity/computed', () => { const v = ref(0) const c1 = computed(() => { v.value = 1 - return v.value + return 0 }) const c2 = computed(() => { return v.value + ',' + c1.value }) - expect(c2.value).toBe('0,1') + expect(c2.value).toBe('0,0') v.value = 1 - expect(c2.value).toBe('1,1') + expect(c2.value).toBe('1,0') expect(COMPUTED_SIDE_EFFECT_WARN).toHaveBeenWarned() })