Software: Apache. PHP/5.6.40 uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24 uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) Safe-mode: OFF (not secure) /home/cp949260/public_html/mophlawyer.com/ladiesmoph/moph_admin/bower_components/dragula.js/test/ drwxr-xr-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.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0109 ]-- |