@splidejs/splide
Version:
Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.
14 lines (11 loc) • 353 B
text/typescript
import { fire } from '../../../test';
import { timeOf } from './timeOf';
describe( 'timeOf', () => {
test( 'can extract a timestamp from an event object.', done => {
window.addEventListener( 'click', e => {
expect( timeOf( e ) ).toBe( 123 );
done();
} );
fire( window, 'click', { timeStamp: 123 } );
} );
} );