|
@@ -23,7 +23,7 @@ describe('reactivity/reactive', () => {
|
|
|
const reactiveObj = reactive(obj)
|
|
const reactiveObj = reactive(obj)
|
|
|
expect(isReactive(reactiveObj)).toBe(true)
|
|
expect(isReactive(reactiveObj)).toBe(true)
|
|
|
// read prop of reactiveObject will cause reactiveObj[prop] to be reactive
|
|
// read prop of reactiveObject will cause reactiveObj[prop] to be reactive
|
|
|
- // @ts-ignore
|
|
|
|
|
|
|
+ // @ts-expect-error
|
|
|
const prototype = reactiveObj['__proto__']
|
|
const prototype = reactiveObj['__proto__']
|
|
|
const otherObj = { data: ['a'] }
|
|
const otherObj = { data: ['a'] }
|
|
|
expect(isReactive(otherObj)).toBe(false)
|
|
expect(isReactive(otherObj)).toBe(false)
|
|
@@ -204,7 +204,7 @@ describe('reactivity/reactive', () => {
|
|
|
const dummy = computed(() => observed.a)
|
|
const dummy = computed(() => observed.a)
|
|
|
expect(dummy.value).toBe(0)
|
|
expect(dummy.value).toBe(0)
|
|
|
|
|
|
|
|
- // @ts-ignore
|
|
|
|
|
|
|
+ // @ts-expect-error
|
|
|
observed.a = bar
|
|
observed.a = bar
|
|
|
expect(dummy.value).toBe(1)
|
|
expect(dummy.value).toBe(1)
|
|
|
|
|
|