test(cloudfunc) coverage

This commit is contained in:
coderaiser 2017-08-02 13:16:30 +03:00
parent 9dd993fe3f
commit a8fafbf87b
3 changed files with 4 additions and 4 deletions

View file

@ -153,7 +153,7 @@ module.exports.buildFromJSON = (params) => {
fileTable += header + '<ul data-name="js-files" class="files">';
/* Если мы не в корне */
if (path !== '/') {
if (path !== '/') {
const dotDot = getDotDot(path);
const link = prefix + FS + dotDot;

View file

@ -23,7 +23,7 @@
<span data-name="js-type" class="mini-icon text-file"></span>
<span data-name="js-name" class="name reduce-text"><a href="/fs/etc/X11/prefdm" title="prefdm" target="_blank" draggable="true">prefdm</a></span>
<span data-name="js-size" class="size reduce-text">1.30kb</span>
<span data-name="js-date" class="date reduce-text">21.02.2016</span>
<span data-name="js-date" class="date reduce-text">--.--.----</span>
<span data-name="js-owner" class="owner reduce-text">root</span>
<span data-name="js-mode" class="mode reduce-text">rwx r-x r-x</span>
</li></ul>

View file

@ -6,7 +6,7 @@ const TMPLDIR = DIR + 'tmpl/';
const Util = require(COMMONDIR + 'util');
const CloudFuncPath = COMMONDIR + 'cloudfunc';
const CloudFunc = require(CloudFuncPath);
const files = require('files-io');
@ -40,7 +40,7 @@ const JSON_FILES = {
}, {
name: 'prefdm',
size: '1.30kb',
date: '21.02.2016',
date: 0,
uid : 0,
mode: 'rwx r-x r-x'
}]