Skip to content

Commit

Permalink
test: use-lock-fn
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonYong committed Oct 14, 2022
1 parent 8887119 commit 3273f84
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/hooks/src/useLockFn/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import useBoolean from '@/useBoolean'
import { sleep } from '@/utils/sleep'
import { ref } from 'vue'
import { sleep } from '@/utils/sleep'

import useLockFn from '..'

describe('useLockFn', () => {
const countRef = ref(0)
const [tag, { set: updateTag }] = useBoolean(false)

const fn = async (step: number) => {
countRef.value += step
Expand Down

0 comments on commit 3273f84

Please sign in to comment.