test: cloudcmd: coverage

This commit is contained in:
coderiaser 2026-03-22 02:04:18 +02:00
parent 708a4c6b99
commit 7661f69f1a
2 changed files with 3 additions and 6 deletions

View file

@ -4,13 +4,10 @@ import {fullstore} from 'fullstore';
import {encode} from '#common/entity';
const id = (a) => a;
export const dateFormatter = fullstore(id);
export const getHeaderField = currify(_getHeaderField);
const NAME = 'Cloud Commander';
export const dateFormatter = fullstore(id);
export const getHeaderField = currify(_getHeaderField);
export const FS = '/fs';
const Path = fullstore();

View file

@ -240,7 +240,7 @@ test('cloudfunc: buildFromJSON: formatDate', (t) => {
const [day, month, year] = str.split('.');
const date = new Date(year, month - 1, day);
return date.toLocaleDateString();
return date.toLocaleDateString('en-US');
};
dateFormatter(formatDate);