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' ); } ); } );