test(reactivity): 100% reactivity coverage (#1299)
This commit is contained in:
@@ -177,4 +177,13 @@ describe('reactivity/reactive', () => {
|
||||
})
|
||||
expect(isReactive(obj.foo)).toBe(false)
|
||||
})
|
||||
|
||||
test('should not observe objects with __v_skip', () => {
|
||||
const original = {
|
||||
foo: 1,
|
||||
__v_skip: true
|
||||
}
|
||||
const observed = reactive(original)
|
||||
expect(isReactive(observed)).toBe(false)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user