Page MenuHomeWickedGov Phorge

wait.test.js
No OneTemporary

Size
288 B
Referenced Files
None
Subscribers
None

wait.test.js

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

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)

Event Timeline