chore: cloudcmd: actions: lint ☘️

This commit is contained in:
coderaiser 2025-03-29 17:32:46 +00:00
parent 9f52ed795d
commit 84c6935ae4
7 changed files with 73 additions and 72 deletions

View file

@ -44,7 +44,8 @@ const data = {
}],
};
let Expect = '<div data-name="js-path" class="reduce-text" title="/etc/X11/">' +
let Expect =
'<div data-name="js-path" class="reduce-text" title="/etc/X11/">' +
'<span data-name="js-copy-path" class="path-icon icon-copy-to-clipboard"' +
' title="copy path (Ctrl+P)">' +
'</span>' +
@ -74,13 +75,13 @@ test('cloudfunc: render', (t) => {
const isNotOk = Expect
.split('')
.some((item, number) => {
const ret = result[number] !== item;
if (ret)
i = number;
return ret;
});
const ret = result[number] !== item;
if (ret)
i = number;
return ret;
});
timeEnd('CloudFunc.buildFromJSON');

View file

@ -170,7 +170,7 @@ test('cloudcmd: rest: pack: zip: put: file', async (t) => {
config,
};
const name = String(Math.random()) + '.zip';
const name = `${Math.random()}.zip`;
await request.put(`/api/v1/pack`, {
options,
@ -192,7 +192,7 @@ test('cloudcmd: rest: pack: zip: put: response', async (t) => {
config,
};
const name = String(Math.random()) + '.zip';
const name = `${Math.random()}.zip`;
const {body} = await request.put(`/api/v1/pack`, {
options,