fix
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 18 Mar 2020 03:54:29 +0000 (23:54 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 18 Mar 2020 03:54:29 +0000 (23:54 -0400)
src/fed2019/Form1116.test.ts
src/fed2019/Form8959.test.ts

index 617621e39de6872969962ccbe4ecdd1f5cbfe59a..77089ec66e846bbe9958f685468e44a060c3a0a0 100644 (file)
@@ -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
   }));
index acb64b46763883d852eeffc2cc5dd80423d44aac..2c111b619164a838c82068af892987a93f608cd9 100644 (file)
@@ -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',