feature: common: cloudfunc -> #common/cloudfunc

This commit is contained in:
coderiaser 2026-02-02 19:16:16 +02:00
parent 1f174870ab
commit 8cad7514e7
18 changed files with 30 additions and 28 deletions

View file

@ -7,7 +7,7 @@ const {test} = require('supertape');
const readFilesSync = require('@cloudcmd/read-files-sync');
const {time, timeEnd} = require(`../../common/util.mjs`);
const CloudFunc = require('../../common/cloudfunc.mjs');
const CloudFunc = require('#common/cloudfunc');
const DIR = `${__dirname}/../../`;
@ -43,7 +43,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>' +
@ -73,13 +74,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');