test: move mockWarn into setup files
This commit is contained in:
@@ -10,7 +10,6 @@ import {
|
||||
shallowReadonly,
|
||||
isProxy
|
||||
} from '../src'
|
||||
import { mockWarn } from '@vue/shared'
|
||||
|
||||
/**
|
||||
* @see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html
|
||||
@@ -18,8 +17,6 @@ import { mockWarn } from '@vue/shared'
|
||||
type Writable<T> = { -readonly [P in keyof T]: T[P] }
|
||||
|
||||
describe('reactivity/readonly', () => {
|
||||
mockWarn()
|
||||
|
||||
describe('Object', () => {
|
||||
it('should make nested values readonly', () => {
|
||||
const original = { foo: 1, bar: { baz: 2 } }
|
||||
|
||||
Reference in New Issue
Block a user