1 import Person from '../Person';
2 import TaxReturn from '../TaxReturn';
4 import Form1040 from './Form1040';
5 import Form1099INT from './Form1099INT';
6 import FormW2 from './FormW2';
8 test('w2 wages', () => {
9 const pa = Person.self('A');
10 const pb = Person.spouse('B');
11 const tr = new TaxReturn(2019);
12 tr.addForm(new FormW2({ employer: 'AA', employee: pa, wages: 100.00, fedIncomeTax: 0 }));
13 tr.addForm(new FormW2({ employer: 'BB', employee: pb, wages: 36.32, fedIncomeTax: 0 }));
14 const f1040 = new Form1040();
16 expect(f1040.getValue(tr, '1')).toBe(136.32);
17 f1040.getValue(tr, '23');
20 test('interest income', () => {
21 const p = Person.self('A');
22 const tr = new TaxReturn(2019);
23 tr.addForm(new Form1099INT({
29 tr.addForm(new Form1099INT({
36 const f1040 = new Form1040();
39 expect(f1040.getValue(tr, '2a')).toBe(95);
40 expect(f1040.getValue(tr, '2b')).toBe(103.5);