import { isCompleteValuation } from './complete-valuation'; describe('isCompleteValuation', () => { it('requires an actual total and every position value', () => { expect(isCompleteValuation({ totals: { value: '100' }, positions: [{ currentValue: null }], })).toBe(false); expect(isCompleteValuation({ totals: { value: '100' }, positions: [{ currentValue: { currency: 'RUB', value: '0' } }], })).toBe(true); }); });