UNPKG
batboy.mente
Version:
latest (0.2.0)
0.2.0
0.1.3
0.1.1
0.1.0
Utilities for simplifying Javascript development
github.com/cg219/batboy
cg219/batboy
batboy.mente
/
playground
/
wait.test.ts
14 lines
(11 loc)
•
304 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{ wait }
from
'./../mod.ts'
;
import
{ assert }
from
'https://deno.land/std@0.117.0/testing/asserts.ts'
;
Deno
.
test
({
name
:
'wait 3 seconds'
,
async
fn
(
) {
let
start =
Date
.
now
();
await
wait
(
3000
);
let
end =
Date
.
now
();
assert
(end - start >=
3000
); } })