Rename FormW2 to just W2.
[ustaxlib.git] / src / fed2019 / FormW2.test.ts
1 import { Person, TaxReturn } from '../core';
2
3 import W2 from './W2';
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 tr.addForm(w2);
10 expect(w2.getValue(tr, 'c')).toBe('Acme');
11 expect(w2.getValue(tr, 'e')).toBe(p);
12 expect(w2.getValue(tr, '1')).toBe(1000);
13 expect(w2.getValue(tr, '2')).toBe(100.40);
14 });