forked from bevacqua/dragula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaults.js
19 lines (17 loc) · 967 Bytes
/
defaults.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'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();
});