types: Use unique symbol type for _isRef property of ref object (#118)
This commit is contained in:
@@ -78,6 +78,7 @@ describe('reactivity/ref', () => {
|
||||
expect(isRef(computed(() => 1))).toBe(true)
|
||||
|
||||
expect(isRef(0)).toBe(false)
|
||||
expect(isRef(1)).toBe(false)
|
||||
// an object that looks like a ref isn't necessarily a ref
|
||||
expect(isRef({ value: 0 })).toBe(false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user