mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
15 lines
510 B
JavaScript
15 lines
510 B
JavaScript
'use strict';
|
|
|
|
const { expect } = require('chai');
|
|
const resolveCliInput = require('./resolveCliInput');
|
|
|
|
describe('#resolveCliInput', () => {
|
|
it('Should crash on multiple config paths', () => {
|
|
expect(() => resolveCliInput('--config world --config hello')).to.throw(
|
|
/Expected single value/
|
|
);
|
|
expect(() => resolveCliInput('--config world --c hello')).to.throw(/Expected single value/);
|
|
expect(() => resolveCliInput('--c world --c hello')).to.throw(/Expected single value/);
|
|
});
|
|
});
|