Skip to content

Commit

Permalink
test(reactivity): declare the exact type (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored and yyx990803 committed Jan 20, 2020
1 parent 035b656 commit 5aa9868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/reactivity/__tests__/ref.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('reactivity/ref', () => {
d: [a]
}
})

let dummy1: number
let dummy2: number
let dummy3: number
Expand All @@ -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)
Expand Down

0 comments on commit 5aa9868

Please sign in to comment.