@@ -5,7 +5,7 @@ import {
|
||||
projectMonthlyCashflow,
|
||||
} from '../../resources/js/lib/monthly-cashflow.ts';
|
||||
|
||||
test('projects exact monthly balances and reconciles cumulative net flow', () => {
|
||||
void test('projects exact monthly balances and reconciles cumulative net flow', () => {
|
||||
const result = projectMonthlyCashflow({
|
||||
openingCash: '100.00',
|
||||
monthlyRevenue: '200.00',
|
||||
@@ -19,7 +19,7 @@ test('projects exact monthly balances and reconciles cumulative net flow', () =>
|
||||
assert.equal(result.firstDeficitMonth, null);
|
||||
});
|
||||
|
||||
test('flags the first projected deficit without changing input values', () => {
|
||||
void test('flags the first projected deficit without changing input values', () => {
|
||||
const result = projectMonthlyCashflow({
|
||||
openingCash: '0',
|
||||
monthlyRevenue: '50',
|
||||
@@ -32,7 +32,7 @@ test('flags the first projected deficit without changing input values', () => {
|
||||
assert.equal(result.endingCash, '-100.00');
|
||||
});
|
||||
|
||||
test('keeps VAT credit stages out of cash and includes only an explicitly forecast receipt', () => {
|
||||
void test('keeps VAT credit stages out of cash and includes only an explicitly forecast receipt', () => {
|
||||
const base = {
|
||||
openingCash: '0',
|
||||
monthlyRevenue: '100',
|
||||
@@ -71,7 +71,7 @@ test('keeps VAT credit stages out of cash and includes only an explicitly foreca
|
||||
);
|
||||
});
|
||||
|
||||
test('unknown assessed tax keeps the cash projection incomplete instead of assuming zero', () => {
|
||||
void test('unknown assessed tax keeps the cash projection incomplete instead of assuming zero', () => {
|
||||
const result = projectMonthlyCashflow({
|
||||
openingCash: '100',
|
||||
monthlyRevenue: '200',
|
||||
@@ -101,7 +101,7 @@ test('unknown assessed tax keeps the cash projection incomplete instead of assum
|
||||
assert.equal(declaredZero.endingCash, '180.00');
|
||||
});
|
||||
|
||||
test('monthly tax calendar applies varying user assumptions and reconciles each closing balance', () => {
|
||||
void test('monthly tax calendar applies varying user assumptions and reconciles each closing balance', () => {
|
||||
const result = projectMonthlyCashflow({
|
||||
openingCash: '100',
|
||||
monthlyRevenue: '200',
|
||||
@@ -118,7 +118,7 @@ test('monthly tax calendar applies varying user assumptions and reconciles each
|
||||
assert.equal(result.endingCash, '360.00');
|
||||
});
|
||||
|
||||
test('a missing month remains indeterminate while known months and tax amounts reconcile', () => {
|
||||
void test('a missing month remains indeterminate while known months and tax amounts reconcile', () => {
|
||||
const result = projectMonthlyCashflow({
|
||||
openingCash: '100',
|
||||
monthlyRevenue: '200',
|
||||
@@ -142,7 +142,7 @@ test('a missing month remains indeterminate while known months and tax amounts r
|
||||
assert.equal(result.endingCashBeforeUnassessedTax, '510.00');
|
||||
});
|
||||
|
||||
test('monthly tax schedule requires one entry per month and cannot conflict with the fixed amount', () => {
|
||||
void test('monthly tax schedule requires one entry per month and cannot conflict with the fixed amount', () => {
|
||||
const base = {
|
||||
openingCash: '0',
|
||||
monthlyRevenue: '100',
|
||||
@@ -165,7 +165,7 @@ test('monthly tax schedule requires one entry per month and cannot conflict with
|
||||
);
|
||||
});
|
||||
|
||||
test('allows an opening cash deficit and rejects excess-precision or invalid horizon inputs', () => {
|
||||
void test('allows an opening cash deficit and rejects excess-precision or invalid horizon inputs', () => {
|
||||
assert.equal(
|
||||
projectMonthlyCashflow({
|
||||
openingCash: '-1.00',
|
||||
@@ -200,7 +200,7 @@ test('allows an opening cash deficit and rejects excess-precision or invalid hor
|
||||
);
|
||||
});
|
||||
|
||||
test('CSV export includes assumptions, monthly totals and an explicit scope note', () => {
|
||||
void test('CSV export includes assumptions, monthly totals and an explicit scope note', () => {
|
||||
const csv = exportMonthlyCashflowCsv(
|
||||
{
|
||||
openingCash: '10.00',
|
||||
@@ -233,7 +233,7 @@ test('CSV export includes assumptions, monthly totals and an explicit scope note
|
||||
assert.match(csv, /^\uFEFF/);
|
||||
});
|
||||
|
||||
test('CSV export records each monthly tax assumption and unknown month explicitly', () => {
|
||||
void test('CSV export records each monthly tax assumption and unknown month explicitly', () => {
|
||||
const csv = exportMonthlyCashflowCsv(
|
||||
{
|
||||
openingCash: '0',
|
||||
@@ -259,7 +259,7 @@ test('CSV export records each monthly tax assumption and unknown month explicitl
|
||||
assert.match(csv, /Pressuposto mensal de imposto,Mês 3,0/);
|
||||
});
|
||||
|
||||
test('cash flow CSV neutralizes formula-like assumption text', () => {
|
||||
void test('cash flow CSV neutralizes formula-like assumption text', () => {
|
||||
const csv = exportMonthlyCashflowCsv({
|
||||
openingCash: '10.00',
|
||||
monthlyRevenue: '20.00',
|
||||
|
||||
Reference in New Issue
Block a user