mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
14 lines
304 B
JavaScript
14 lines
304 B
JavaScript
jest.dontMock('../string-utils');
|
|
|
|
describe('StringUtils', () => {
|
|
const StringUtils = require('../string-utils');
|
|
|
|
describe('formatMetric', () => {
|
|
const formatMetric = StringUtils.formatMetric;
|
|
|
|
it('it should render 0', () => {
|
|
expect(formatMetric(0)).toBe('0.00');
|
|
});
|
|
});
|
|
});
|