Complete Form W-2 and first few lines of 1040.
[ustaxlib.git] / src / fed2019 / FormW2.test.ts
1 import W2 from './FormW2';
2 import Person from '../Person';
3 import TaxReturn from '../TaxReturn';
4
5 test('input', () => {
6 const p = Person.self('Bob');
7 const w2 = new W2({ employer: 'Acme', employee: p, wages: 1000, fedIncomeTax: 100.40 });
8 const tr = new TaxReturn(2019);
9 expect(w2.getValue(tr, 'c')).toBe('Acme');
10 expect(w2.getValue(tr, 'e')).toBe(p);
11 expect(w2.getValue(tr, '1')).toBe(1000);
12 expect(w2.getValue(tr, '2')).toBe(100.40);
13 });