mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
refactor: remove unused code (#8300)
This commit is contained in:
committed by
Grace Guo
parent
25e2517dcb
commit
d55fe54198
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user