Skip to content

Commit

Permalink
feat(api): Add more test assertions for AlarmSummaryDTO
Browse files Browse the repository at this point in the history
  • Loading branch information
smith-opennms committed Jun 25, 2018
1 parent 3329cf7 commit 0f45e79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/dao/AlarmDAO.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ describe('AlarmDAO with AlarmSummaryDTO', () => {
expect(alarms.length).toEqual(4);
expect(alarms[0].id).toEqual(8);
expect(alarms[0].relatedAlarms.length).toEqual(3);
expect(alarms[0].relatedAlarms[0].id).toEqual(5);
expect(alarms[0].relatedAlarms[0].type).toEqual(2);
expect(alarms[0].relatedAlarms[0].severity).toEqual('CRITICAL');
expect(alarms[0].relatedAlarms[0].reductionKey).toEqual('uei.opennms.org/alarms/trigger:localhost:0.0.0.0:HTTPS_APOOLs');
expect(alarms[0].relatedAlarms[0].description).toEqual('A problem has been triggered.');
});
});
});

0 comments on commit 0f45e79

Please sign in to comment.