]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(runtime-test): remove useless test code (#11483)
authorSunny Fu <73089592+Sunny-117@users.noreply.github.com>
Mon, 5 Aug 2024 02:42:13 +0000 (10:42 +0800)
committerGitHub <noreply@github.com>
Mon, 5 Aug 2024 02:42:13 +0000 (10:42 +0800)
packages/runtime-test/__tests__/testRuntime.spec.ts

index 2b6e12c4769dcd52d6bb6fc10529dd23d4836a5e..df8c77af0a7974642cdba0ef81c462fc803d9ad4 100644 (file)
@@ -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()
-  })
 })