salix-front/test/vitest/__tests__/composables/useAccountShortToStandard.s...

10 lines
412 B
JavaScript
Raw Normal View History

2024-12-05 11:34:29 +00:00
import { describe, expect, it } from 'vitest';
import { useAccountShortToStandard } from 'src/composables/useAccountShortToStandard';
describe('useAccountShortToStandard()', () => {
it('should pad the decimal part with zeros for short numbers', () => {
expect(useAccountShortToStandard('123.45')).toBe('1230000045');
expect(useAccountShortToStandard('123.')).toBe('1230000000');
});
});