mirror of https://github.com/vuejs/core.git
test(runtime-vapor): add misc test (#246)
This commit is contained in:
parent
07444b3266
commit
63dbc26f34
|
@ -0,0 +1,14 @@
|
|||
import { isReactive, reactive } from 'vue'
|
||||
import { makeRender } from './_utils'
|
||||
|
||||
const define = makeRender()
|
||||
|
||||
describe('misc', () => {
|
||||
test.fails('component public instance should not be observable', () => {
|
||||
const { instance } = define({}).render()
|
||||
expect(instance).toBeDefined()
|
||||
const r = reactive(instance!)
|
||||
expect(r).toBe(instance)
|
||||
expect(isReactive(r)).toBe(false)
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue