mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
chore(cloudcmd) lint: key-spacing
This commit is contained in:
parent
a91344595c
commit
59338a16ac
8 changed files with 38 additions and 36 deletions
|
|
@ -186,10 +186,10 @@ function get(manage, request, response) {
|
|||
const data = jonny.stringify(manage('*'));
|
||||
|
||||
ponse.send(data, {
|
||||
name : 'config.json',
|
||||
name: 'config.json',
|
||||
request,
|
||||
response,
|
||||
cache : false,
|
||||
cache: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const exit = require('./exit');
|
|||
const stub = require('@cloudcmd/stub');
|
||||
|
||||
test('cloudcmd: exit: process.exit', (t) => {
|
||||
const {exit:exitOriginal} = process;
|
||||
const {exit: exitOriginal} = process;
|
||||
process.exit = stub();
|
||||
|
||||
exit();
|
||||
|
|
@ -16,7 +16,7 @@ test('cloudcmd: exit: process.exit', (t) => {
|
|||
});
|
||||
|
||||
test('cloudcmd: exit: console.error', (t) => {
|
||||
const {exit:exitOriginal} = process;
|
||||
const {exit: exitOriginal} = process;
|
||||
const {error} = console;
|
||||
|
||||
console.error = stub();
|
||||
|
|
@ -32,7 +32,7 @@ test('cloudcmd: exit: console.error', (t) => {
|
|||
});
|
||||
|
||||
test('cloudcmd: exit.error: console.error: error', (t) => {
|
||||
const {exit:exitOriginal} = process;
|
||||
const {exit: exitOriginal} = process;
|
||||
const {error} = console;
|
||||
|
||||
console.error = stub();
|
||||
|
|
|
|||
|
|
@ -137,18 +137,18 @@ function indexProcessing(config, options) {
|
|||
.replace('icon-terminal', 'icon-terminal none');
|
||||
|
||||
const left = rendy(Template.panel, {
|
||||
side : 'left',
|
||||
content : panel,
|
||||
className : !oneFilePanel ? '' : 'panel-single',
|
||||
side: 'left',
|
||||
content: panel,
|
||||
className: !oneFilePanel ? '' : 'panel-single',
|
||||
});
|
||||
|
||||
let right = '';
|
||||
|
||||
if (!oneFilePanel)
|
||||
right = rendy(Template.panel, {
|
||||
side : 'right',
|
||||
content : panel,
|
||||
className : '',
|
||||
side: 'right',
|
||||
content: panel,
|
||||
className: '',
|
||||
});
|
||||
|
||||
const name = config('name');
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ test('cloudcmd: terminal: enabled', (t) => {
|
|||
});
|
||||
|
||||
test('cloudcmd: terminal: enabled: no string', (t) => {
|
||||
const {log:originalLog} = console;
|
||||
const {log: originalLog} = console;
|
||||
const log = stub();
|
||||
|
||||
console.log = log;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue