types: Use unique symbol type for _isRef property of ref object (#118)

This commit is contained in:
Rahul Kadyan
2019-10-06 08:02:50 +05:30
committed by Evan You
parent caa9297da6
commit f58e5e96f2
3 changed files with 4 additions and 2 deletions

View File

@@ -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)
})