perf: avoid using WeakSet for isRef check

This commit is contained in:
Evan You
2019-09-30 10:52:50 -04:00
parent 7f06981f7c
commit 46bd9dbab0
4 changed files with 11 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
import { ref, effect, reactive, isRef, toRefs } from '../src/index'
import { computed } from '@vue/runtime-dom'
describe('reactivity/value', () => {
describe('reactivity/ref', () => {
it('should hold a value', () => {
const a = ref(1)
expect(a.value).toBe(1)