Skip to content

Commit

Permalink
chore(runtime-test): remove useless test code (#11483)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny-117 authored Aug 5, 2024
1 parent 2a29a71 commit 33cd613
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/runtime-test/__tests__/testRuntime.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,17 +200,4 @@ describe('test renderer', () => {
await nextTick()
expect(serialize(root)).toBe(`<div><span>1, 2</span></div>`)
})

it('should mock warn', () => {
console.warn('warn!!!')
expect('warn!!!').toHaveBeenWarned()
expect('warn!!!').toHaveBeenWarnedTimes(1)

console.warn('warn!!!')
expect('warn!!!').toHaveBeenWarnedTimes(2)

console.warn('warning')
expect('warn!!!').toHaveBeenWarnedTimes(2)
expect('warning').toHaveBeenWarnedLast()
})
})

0 comments on commit 33cd613

Please sign in to comment.