Skip to content
Permalink
Browse files

feat(api): Add more test assertions for AlarmSummaryDTO

  • Loading branch information...
smith-opennms committed Jun 25, 2018
1 parent 3329cf7 commit 0f45e79e7780b325bacd7f04b3b919136037e3fb
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/dao/AlarmDAO.spec.ts
@@ -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.
You can’t perform that action at this time.