Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5986060
wait.test.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
288 B
Referenced Files
None
Subscribers
None
wait.test.js
View Options
import
wait
from
'../../src/wait'
;
QUnit
.
module
(
'ext.popups/wait'
);
QUnit
.
test
(
'it should resolve after waiting'
,
(
assert
)
=>
{
const
then
=
Date
.
now
();
return
wait
(
150
).
then
(
()
=>
{
assert
.
true
(
(
Date
.
now
()
-
then
)
>=
150
,
'It waits for the given duration'
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sat, Oct 3, 23:59 (2 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b1/2b/93175409b9bc365c76552a12fb22
Default Alt Text
wait.test.js (288 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment