test: move mockWarn into setup files

This commit is contained in:
Evan You
2020-07-27 22:58:37 -04:00
parent d4527230e4
commit 5c74243211
35 changed files with 103 additions and 199 deletions

View File

@@ -1,10 +1,7 @@
import { render, h, nodeOps } from '@vue/runtime-test'
import { useCssModule } from '../../src/helpers/useCssModule'
import { mockWarn } from '@vue/shared'
describe('useCssModule', () => {
mockWarn()
function mountWithModule(modules: any, name?: string) {
let res
render(

View File

@@ -1,10 +1,7 @@
import { patchProp } from '../src/patchProp'
import { render, h } from '../src'
import { mockWarn } from '@vue/shared'
describe('runtime-dom: props patching', () => {
mockWarn()
test('basic', () => {
const el = document.createElement('div')
patchProp(el, 'id', null, 'foo')