mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-28 01:10:04 +00:00
883c8c1aca
Change-Id: I055517998ed06fccdf50ec31251ea6aa9040abb5
11 lines
293 B
JavaScript
11 lines
293 B
JavaScript
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' );
|
|
} );
|
|
} );
|