From f34d01e7a0f522b3b1cf02ca6636158e4ba868dd Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 17 Mar 2020 23:54:29 -0400 Subject: [PATCH] fix --- src/fed2019/Form1116.test.ts | 3 ++- src/fed2019/Form8959.test.ts | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/fed2019/Form1116.test.ts b/src/fed2019/Form1116.test.ts index 617621e..77089ec 100644 --- a/src/fed2019/Form1116.test.ts +++ b/src/fed2019/Form1116.test.ts @@ -49,8 +49,9 @@ test('unsupported income categories', () => { }); test('foreign tax credit', () => { - const p = Person.self('A'); const tr = new TaxReturn(); + const p = Person.self('A'); + tr.addPerson(p); tr.addForm(new Form1040({ filingStatus: FilingStatus.MarriedFilingJoint })); diff --git a/src/fed2019/Form8959.test.ts b/src/fed2019/Form8959.test.ts index acb64b4..2c111b6 100644 --- a/src/fed2019/Form8959.test.ts +++ b/src/fed2019/Form8959.test.ts @@ -26,8 +26,9 @@ describe('additional medicare tax', () => { for (const filingStatus of Object.values(FilingStatus)) { test(`filing status ${filingStatus}`, () => { - const p = Person.self('A'); const tr = new TaxReturn(); + const p = Person.self('A'); + tr.addPerson(p); tr.addForm(new Form1040({ filingStatus })); tr.addForm(new W2({ employer: 'Acme', @@ -61,8 +62,9 @@ describe('additional medicare tax', () => { describe('no additional medicare tax', () => { for (const filingStatus of Object.values(FilingStatus)) { test(`filing status ${filingStatus}`, () => { - const p = Person.self('A'); const tr = new TaxReturn(); + const p = Person.self('A'); + tr.addPerson(p); tr.addForm(new Form1040({ filingStatus })); tr.addForm(new W2({ employer: 'Acme', -- 2.43.5