mirror of https://github.com/vuejs/core.git
chore(runtime-test): remove useless test code (#11483)
This commit is contained in:
parent
2a29a71d8a
commit
33cd61356f
|
@ -200,17 +200,4 @@ describe('test renderer', () => {
|
||||||
await nextTick()
|
await nextTick()
|
||||||
expect(serialize(root)).toBe(`<div><span>1, 2</span></div>`)
|
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()
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue