Skip to content

Commit 5754f9c

Browse files
committed
fix: no use
1 parent 995ffee commit 5754f9c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/hooks/src/useRequest/__tests__/throttle.spec.ts

-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import renderHook from 'test-utils/renderHook'
22
import useRequest from '../useRequest'
33

4-
function getUsername(): Promise<string> {
5-
return new Promise(resolve => {
6-
setTimeout(() => {
7-
resolve(`${String(Date.now())}`)
8-
}, 1000)
9-
})
10-
}
114
describe('useRequest/Throttle', () => {
125
vitest.useFakeTimers()
136

0 commit comments

Comments
 (0)