test(reactivity): declare the exact type (#644)

This commit is contained in:
Rustin 2020-01-21 01:02:08 +08:00 committed by Evan You
parent 035b6560f7
commit 5aa9868512

View File

@ -42,7 +42,7 @@ describe('reactivity/ref', () => {
d: [a]
}
})
let dummy1: number
let dummy2: number
let dummy3: number
@ -53,7 +53,7 @@ describe('reactivity/ref', () => {
dummy3 = obj.b.d[0]
})
const assertDummiesEqualTo = (val: any) =>
const assertDummiesEqualTo = (val: number) =>
[dummy1, dummy2, dummy3].forEach(dummy => expect(dummy).toBe(val))
assertDummiesEqualTo(1)