Files
h5ai/test/tests/unit/core/format.js

13 lines
573 B
JavaScript
Raw Normal View History

2016-06-04 02:43:48 +02:00
const {test, assert} = require('scar');
2019-04-24 02:09:57 +02:00
const reqlib = require('../../../util/reqlib');
const format = reqlib('core/format');
2016-06-04 02:43:48 +02:00
2016-08-03 11:40:53 +02:00
test('core.format', () => {
2016-06-04 02:43:48 +02:00
assert.equal(typeof format, 'object');
2016-08-03 11:40:53 +02:00
assert.deepEqual(Object.keys(format).sort(), ['setDefaultMetric', 'formatSize', 'setDefaultDateFormat', 'formatDate'].sort());
2016-06-04 02:43:48 +02:00
assert.equal(typeof format.setDefaultMetric, 'function');
assert.equal(typeof format.formatSize, 'function');
assert.equal(typeof format.setDefaultDateFormat, 'function');
assert.equal(typeof format.formatDate, 'function');
});