refactor: remove unused code (#8300)

This commit is contained in:
Krist Wongsuphasawat
2019-09-30 16:57:35 -07:00
committed by Grace Guo
parent 25e2517dcb
commit d55fe54198
13 changed files with 11 additions and 502 deletions

View File

@@ -19,7 +19,6 @@
import {
formatSelectOptionsForRange,
mainMetric,
roundDecimal,
} from '../../../src/modules/utils';
describe('utils', () => {
@@ -66,11 +65,4 @@ describe('utils', () => {
expect(mainMetric(metrics)).toBe('foo');
});
});
describe('roundDecimal', () => {
it('rounding method to limit the number of decimal digits', () => {
expect(roundDecimal(1.139, 2)).toBe(1.14);
expect(roundDecimal(1.13929, 3)).toBe(1.139);
expect(roundDecimal(1.13929)).toBe(1);
});
});
});