Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/dragula/test/ drwxrwxr-x | |
| Viewing file: Select action/file-type: 'use strict';
var test = require('tape');
var dragula = require('..');
test('drake can be instantiated without throwing', function (t) {
t.doesNotThrow(drakeFactory, 'calling dragula() without arguments does not throw');
t.end();
function drakeFactory () {
return dragula();
}
});
test('drake has expected api properties', function (t) {
var drake = dragula();
t.ok(drake, 'drake is not null');
t.equal(typeof drake, 'object', 'drake is an object');
t.ok(Array.isArray(drake.containers), 'drake.containers is an array');
t.equal(typeof drake.start, 'function', 'drake.start is a method');
t.equal(typeof drake.end, 'function', 'drake.end is a method');
t.equal(typeof drake.cancel, 'function', 'drake.cancel is a method');
t.equal(typeof drake.remove, 'function', 'drake.remove is a method');
t.equal(typeof drake.destroy, 'function', 'drake.destroy is a method');
t.equal(typeof drake.dragging, 'boolean', 'drake.dragging is a boolean');
t.equal(drake.dragging, false, 'drake.dragging is initialized as false');
t.end();
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]-- |