mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
59037f2c18
commit
ddf5a59f70
3 changed files with 14 additions and 4 deletions
|
|
@ -348,7 +348,12 @@ function CloudCmdProto({DOM, Listeners}) {
|
|||
'pathLink',
|
||||
];
|
||||
|
||||
const [error, [file, path, link, pathLink]] = await tryToCatch(Files.get, names);
|
||||
const [error, [
|
||||
file,
|
||||
path,
|
||||
link,
|
||||
pathLink,
|
||||
]] = await tryToCatch(Files.get, names);
|
||||
|
||||
if (error)
|
||||
return DOM.Dialog.alert(error.responseText);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,10 @@ test('current-file: setCurrentName: setAttribute', (t) => {
|
|||
|
||||
currentFile.setCurrentName('hello', current);
|
||||
|
||||
t.calledWith(setAttribute, ['data-name', 'js-file-aGVsbG8='], 'should call setAttribute');
|
||||
t.calledWith(setAttribute, [
|
||||
'data-name',
|
||||
'js-file-aGVsbG8=',
|
||||
], 'should call setAttribute');
|
||||
|
||||
globalThis.DOM = DOM;
|
||||
globalThis.CloudCmd = CloudCmd;
|
||||
|
|
@ -38,7 +41,10 @@ test('current-file: setCurrentName: setAttribute: cyrillic', (t) => {
|
|||
|
||||
currentFile.setCurrentName('ай', current);
|
||||
|
||||
t.calledWith(setAttribute, ['data-name', 'js-file-JUQwJUIwJUQwJUI5'], 'should call setAttribute');
|
||||
t.calledWith(setAttribute, [
|
||||
'data-name',
|
||||
'js-file-JUQwJUIwJUQwJUI5',
|
||||
], 'should call setAttribute');
|
||||
|
||||
globalThis.DOM = DOM;
|
||||
globalThis.CloudCmd = CloudCmd;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ const getOperations = (event, deps) => {
|
|||
preventDefault = event?.preventDefault?.bind(event),
|
||||
stopImmediatePropagation = event?.preventDefault?.bind(event),
|
||||
promptNewFile = DOM.promptNewFile,
|
||||
|
||||
toggleSelectedFile,
|
||||
Buffer = {},
|
||||
createFindNext = _createFindNext,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue