test(reactivity): declare the exact type (#644)
This commit is contained in:
parent
035b6560f7
commit
5aa9868512
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user