grafana/public/app/core/specs/ticks.test.ts
Ashley Harrison d5db67a073
Chore: type improvements (#80464)
* type improvements

* some more fixes

* add TODOs to remove type assertions
2024-01-15 14:29:39 +00:00

13 lines
333 B
TypeScript

import * as ticks from '../utils/ticks';
describe('ticks', () => {
describe('getStringPrecision()', () => {
it('"3.12" should return 2', () => {
expect(ticks.getStringPrecision('3.12')).toBe(2);
});
it('"asd" should return 0', () => {
expect(ticks.getStringPrecision('asd.asd')).toBe(0);
});
});
});