Complete Form W-2 and first few lines of 1040.
[ustaxlib.git] / src / fed2019 / Form1040.test.ts
1 import Person from '../Person';
2 import TaxReturn from '../TaxReturn';
3
4 import Form1040 from './Form1040';
5 import FormW2 from './FormW2';
6
7 test('w2 wages', () => {
8 const pa = Person.self('A');
9 const pb = Person.spouse('B');
10 const tr = new TaxReturn(2019);
11 tr.addForm(new FormW2({ employer: 'AA', employee: pa, wages: 100.00 }));
12 tr.addForm(new FormW2({ employer: 'BB', employee: pb, wages: 36.32 }));
13 const f1040 = new Form1040();
14 expect(f1040.getValue(tr, '1')).toBe(136.32);
15 });