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