1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00
Oinktube/node_modules/flickity/test/unit/wrap-around-fill.js
2023-06-30 09:56:13 -03:00

15 lines
481 B
JavaScript

QUnit.test( 'wrapAround: "fill"', function( assert ) {
let elem = document.querySelector('#wrap-around-fill');
let flkty = new Flickity( elem, {
wrapAround: 'fill',
} );
assert.ok( !flkty.isWrapping, 'total cell width not big enough, not wrapping' );
let shortCell = elem.querySelector('.cell--wrap-around-short');
shortCell.classList.remove('cell--wrap-around-short');
flkty.resize();
assert.ok( flkty.isWrapping, 'cell width big enough, wrapping' );
} );