Skip to content

Commit

Permalink
Covers one more case in a unit test in order to raise code coverage (…
Browse files Browse the repository at this point in the history
…needed for #1467)
  • Loading branch information
Elaine-Krauss-TCG committed Jul 25, 2024
1 parent ebec0ef commit 83d33f1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions front-end/src/app/shared/models/form-1m.model.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,15 @@ describe('Form-1M', () => {
const form = Form1M.fromJSON(data);
expect(form.formSubLabel).toEqual('NOTIFICATION OF MULTICANDIDATE STATUS');
});

it('should display empty string for sub label', () => {
const data = {
id: '999',
form_type: F1MFormTypes.F1MN,
committee_name: 'foo',
report_code_label: undefined,
};
const form = Form1M.fromJSON(data);
expect(form.formSubLabel).toEqual('');
});
});

0 comments on commit 83d33f1

Please sign in to comment.