mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
test: cloudcmd: coverage
This commit is contained in:
parent
708a4c6b99
commit
7661f69f1a
2 changed files with 3 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue