Skip to content

Commit

Permalink
Update computed.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored Jun 28, 2024
1 parent a2dd19f commit 0e230f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/reactivity/__tests__/computed.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ describe('reactivity/computed', () => {
expect(COMPUTED_SIDE_EFFECT_WARN).toHaveBeenWarned()
})

it('should be recompute without being affected by side effects', () => {
it('should be recomputed without being affected by side effects', () => {
const v = ref(0)
const c1 = computed(() => {
v.value = 1
Expand All @@ -632,6 +632,7 @@ describe('reactivity/computed', () => {
expect(c2.value).toBe('0,0')
v.value = 1
expect(c2.value).toBe('1,0')
expect(COMPUTED_SIDE_EFFECT_WARN).toHaveBeenWarned()
})

it('debug: onTrigger (ref)', () => {
Expand Down

0 comments on commit 0e230f2

Please sign in to comment.