mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
feature: common: cloudfunc -> #common/cloudfunc
This commit is contained in:
parent
1f174870ab
commit
8cad7514e7
18 changed files with 30 additions and 28 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue