mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
feature: client: dom: images -> #images
This commit is contained in:
parent
8cad7514e7
commit
c3b71653bb
26 changed files with 40 additions and 42 deletions
|
|
@ -6,8 +6,8 @@ const {tryCatch} = require('try-catch');
|
|||
const {test} = require('supertape');
|
||||
const readFilesSync = require('@cloudcmd/read-files-sync');
|
||||
|
||||
const {time, timeEnd} = require(`../../common/util.mjs`);
|
||||
const CloudFunc = require('#common/cloudfunc');
|
||||
const {time, timeEnd} = require(`../../common/util.mjs`);
|
||||
|
||||
const DIR = `${__dirname}/../../`;
|
||||
|
||||
|
|
@ -43,8 +43,7 @@ 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 +73,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