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

14 lines
532 B
JavaScript

QUnit.module('Packery');
QUnit.test( 'basics', function( assert ) {
assert.equal( typeof Packery, 'function', 'Packery is a function' );
// TODO pckry should be null or something
var pckry1 = new Packery();
// console.log( pckry, typeof pckry );
assert.ok( !pckry1._isLayoutInited, 'packery not inited on undefined' );
// var pckry2 = new Packery({});
// console.log( pckry, typeof pckry );
// FIXME Outlayer should throw error up top
// assert.ok( !pckry2._isLayoutInited, 'packery not inited on object' );
});