blowfish/node_modules/packery/test/unit/is-init-layout.js
2023-01-29 22:30:24 +00:00

8 lines
337 B
JavaScript

QUnit.test( 'initLayout', function( assert ) {
var container = document.querySelector('#is-init-layout');
var pckry = new Packery( container, {
initLayout: false
});
assert.ok( !pckry._isLayoutInited, 'packy is not layout initialized' );
assert.equal( container.children[0].style.left, '', 'no style on first child' );
});