mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support drag and drop for playlist items
This commit is contained in:
parent
80929558e6
commit
fd64c014a3
45 changed files with 4202 additions and 3 deletions
27
dashboard-ui/bower_components/dragula.js/test/drake-api.js
vendored
Normal file
27
dashboard-ui/bower_components/dragula.js/test/drake-api.js
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
'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();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue