MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/snap.cafsinfotech.in/node_modules/dragula/test/defaults.js
'use strict';

var test = require('tape');
var dragula = require('..');

test('drake has sensible default options', function (t) {
  var options = {};
  dragula(options);
  t.equal(typeof options.moves, 'function', 'options.moves defaults to a method');
  t.equal(typeof options.accepts, 'function', 'options.accepts defaults to a method');
  t.equal(typeof options.invalid, 'function', 'options.invalid defaults to a method');
  t.equal(typeof options.isContainer, 'function', 'options.isContainer defaults to a method');
  t.equal(options.copy, false, 'options.copy defaults to false');
  t.equal(options.revertOnSpill, false, 'options.revertOnSpill defaults to false');
  t.equal(options.removeOnSpill, false, 'options.removeOnSpill defaults to false');
  t.equal(options.direction, 'vertical', 'options.direction defaults to \'vertical\'');
  t.equal(options.mirrorContainer, document.body, 'options.mirrorContainer defaults to an document.body');
  t.end();
});