Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4068461
wait.test.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
294 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'
,
function
(
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
Aug 16 2026, 20:12 (11 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8c/45/52e83df79959f9778375c0d1fbff
Default Alt Text
wait.test.js (294 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment