mirror of
https://github.com/lrsjng/h5ai.git
synced 2026-01-27 09:39:20 +01:00
12 lines
562 B
JavaScript
12 lines
562 B
JavaScript
const {test, assert} = require('scar');
|
|
const format = require('../../../../src/_h5ai/public/js/lib/core/format');
|
|
|
|
test('core.format', () => {
|
|
assert.equal(typeof format, 'object');
|
|
assert.deepEqual(Object.keys(format).sort(), ['setDefaultMetric', 'formatSize', 'setDefaultDateFormat', 'formatDate'].sort());
|
|
assert.equal(typeof format.setDefaultMetric, 'function');
|
|
assert.equal(typeof format.formatSize, 'function');
|
|
assert.equal(typeof format.setDefaultDateFormat, 'function');
|
|
assert.equal(typeof format.formatDate, 'function');
|
|
});
|