UNPKG
ahooks-v2
Version:
latest (2.10.15)
2.10.15
2.10.13
react hooks library
github.com/alibaba/hooks
alibaba/hooks
ahooks-v2
/
lib
/
utils
/
testingHelpers.js
16 lines
(13 loc)
•
261 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
sleep
=
void
0
;
function
sleep
(
time
) {
return
new
Promise
(
function
(
resolve
) {
setTimeout
(
function
(
) {
resolve
(); }, time); }); }
exports
.
sleep
= sleep;