Files
divkit/visual-editor/src/lib/utils/formatSize.test.ts
T
4eb0da 9dc8c84d2c Move editor
dacbe6a667671b6c476b8fb1ba972c26cd9061cb
2024-09-09 17:23:57 +03:00

12 lines
371 B
TypeScript

import { describe, test, expect } from 'vitest';
import { formatSize } from './formatSize';
describe('formatSize', () => {
test('simple', () => {
expect(formatSize(123)).toEqual('123');
expect(formatSize(123.4)).toEqual('123.4');
expect(formatSize(123.0001)).toEqual('123');
expect(formatSize(123.456)).toEqual('123.46');
});
});