mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
13 lines
333 B
TypeScript
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);
|
|
});
|
|
});
|
|
});
|