Skip to content

Commit

Permalink
fix eslint warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Nov 8, 2020
1 parent 2d0da1f commit 6d8e7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/basic.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ it('uses the store with no args', async () => {

function Counter() {
const { count, inc } = useStore()
React.useEffect(inc, [])
React.useEffect(inc, [inc])
return <div>count: {count}</div>
}

Expand All @@ -72,7 +72,7 @@ it('uses the store with selectors', async () => {
function Counter() {
const count = useStore((s) => s.count)
const inc = useStore((s) => s.inc)
React.useEffect(inc, [])
React.useEffect(inc, [inc])
return <div>count: {count}</div>
}

Expand Down Expand Up @@ -160,7 +160,7 @@ it('can batch updates', async () => {
inc()
inc()
})
}, [])
}, [inc])
return <div>count: {count}</div>
}

Expand Down

0 comments on commit 6d8e7ab

Please sign in to comment.