Skip to content

Commit

Permalink
chore: prefer const (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangmingshan authored Mar 23, 2020
1 parent 8adf0d6 commit 14908f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime-core/__tests__/apiWatch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ describe('api: watch', () => {
let dummy
watch([() => state.count, status] as const, (vals, oldVals) => {
dummy = [vals, oldVals]
let [count] = vals
let [, oldStatus] = oldVals
const [count] = vals
const [, oldStatus] = oldVals
// assert types
count + 1
oldStatus === true
Expand Down Expand Up @@ -412,7 +412,7 @@ describe('api: watch', () => {

it('warn and not respect deep option when using effect', async () => {
const arr = ref([1, [2]])
let spy = jest.fn()
const spy = jest.fn()
watchEffect(
() => {
spy()
Expand Down

0 comments on commit 14908f2

Please sign in to comment.