mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
21 lines
492 B
JavaScript
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();
|
|
});
|
|
|