cloudcmd/test/lib/cloudcmd.js
2016-11-30 20:15:30 +02:00

21 lines
492 B
JavaScript

'use strict';
const test = require('tape');
const cloudcmd = require('../..');
test('cloudcmd: args: no', (t) => {
const fn = () => cloudcmd();
t.doesNotThrow(fn, /plugins should be an array!/, 'should throw when plugins not an array');
t.end();
});
test('cloudcmd: args: plugins: error', (t) => {
const fn = () => cloudcmd({
plugins: ''
});
t.throws(fn, /plugins should be an array!/, 'should throw when plugins not an array');
t.end();
});