import { expect } from 'chai';
import { formatCurrency, getTildeGivenAmount } from '../../../src/core/utils/formatCurrency';
describe('UNIT: formatCurrency', function () {
    it('Empty', function () {
        expect(formatCurrency('')).to.eq('$0.00');
    });
    it('Zero', function () {
        expect(formatCurrency('0')).to.eq('$0.00');
    });
    it('Always round down', function () {
        expect(formatCurrency('123.409')).to.eq('$123.40');
        expect(formatCurrency('123.405')).to.eq('$123.40');
        expect(formatCurrency('123.404')).to.eq('$123.40');
        expect(formatCurrency('123.401')).to.eq('$123.40');
    });
    it('Without currency symbol', function () {
        expect(formatCurrency('123.4567', '')).to.eq('123.45');
    });
});
describe('UNIT: getTildeGivenAmount', function () {
    it('Empty', function () {
        expect(getTildeGivenAmount('')).to.eq('');
    });
    it('Zero', function () {
        expect(getTildeGivenAmount('0')).to.eq('');
    });
    it('Return tide', function () {
        expect(getTildeGivenAmount('123.409')).to.eq('~');
        expect(getTildeGivenAmount('5555')).to.eq('~');
        expect(getTildeGivenAmount('12.33')).to.eq('~');
    });
});
//# sourceMappingURL=formatCurrency.test.js.map