frequi_origin/tests/unit/formatters.spec.ts

8 lines
190 B
TypeScript
Raw Normal View History

2021-12-18 10:16:15 +00:00
import { formatPercent } from '@/shared/formatters';
describe('formatters.ts', () => {
it('Format percent correctly', () => {
expect(formatPercent(0.5)).toEqual('50.000%');
});
});