mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
eff03299b6
commit
4f4725ac3c
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ export const editor = (name, {exit = _exit} = {}) => {
|
|||
const reg = /^(dword|edward|deepword|qword)$/;
|
||||
|
||||
if (!reg.test(name))
|
||||
exit(`cloudcmd --editor: could be "dword", "edward", "deepword" or "qword" only, recieved: "${name}"`);
|
||||
exit(`cloudcmd --editor: could be "dword", "edward", "deepword" or "qword" only, received: "${name}"`);
|
||||
};
|
||||
|
||||
export const menu = (name, {exit = _exit} = {}) => {
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ test('validate: packer: not valid', (t) => {
|
|||
|
||||
test('validate: editor: not valid', (t) => {
|
||||
const exit = stub();
|
||||
const msg = 'cloudcmd --editor: could be "dword", "edward", "deepword" or "qword" only, recieved: "hello"';
|
||||
const msg = 'cloudcmd --editor: could be "dword", "edward", "deepword" or "qword" only, received: "hello"';
|
||||
|
||||
validate.editor('hello', {
|
||||
exit,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue