Clarify viability simulation purpose and preserve PEC cash-flow hypotheses
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -30,7 +30,9 @@ const output = ts.transpileModule(source, {
|
||||
}).outputText;
|
||||
compileFunction(output, ['require', 'module', 'exports'])(
|
||||
(name) =>
|
||||
name === '@/lib/irpc-annual-settlement'
|
||||
name === './simulation-irpc-pec-plan'
|
||||
? {SimulationIrpcPecPlan:()=>null}
|
||||
: name === '@/lib/irpc-annual-settlement'
|
||||
? annual
|
||||
: name === '@/lib/irpc-pec-obligation'
|
||||
? investment
|
||||
@@ -86,7 +88,7 @@ function harness(c) {
|
||||
test('actual PEC form reuses context, preserves hidden edits and explains first-year exception', () => {
|
||||
const c = investmentCase(),
|
||||
h = harness(c);
|
||||
h.click('Preparar obrigação PEC');
|
||||
h.click('Simular PEC');
|
||||
assert.equal(h.book().pecObligation.subjectNuit, c.b.subjectNuit);
|
||||
assert.equal(h.book().pecObligation.previousTurnover, '');
|
||||
h.change('Enquadramento PEC', 'ordinary_resident');
|
||||
|
||||
Reference in New Issue
Block a user