mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-28 01:10:04 +00:00
14c2102476
Some inline compatibility queries for the maintainers, where it wasn't obviously intentional. Change-Id: Idd659a0a0f7fb86c3f6870b8fe4608bbf8a45f05
11 lines
291 B
JavaScript
11 lines
291 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.ok( ( Date.now() - then ) > 150, 'It waits for the given duration' );
|
|
} );
|
|
} );
|