Skip to content

Commit

Permalink
fix(core/pagerduty): Fix tests for new service interface (#4957)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Reynolds committed Mar 5, 2018
1 parent 3af44c9 commit c5c93ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('PagerDutyReader', () => {
it('should return a non-empty array when configured to do so and invoked', () => {

const services: IPagerDutyService[] = [
{ name: 'one', integration_key: 'one_key', id: '1', policy: 'ABCDEF', lastIncidentTimestamp: '1970' },
{ name: '2', integration_key: 'two_key', id: '2', policy: 'ABCDEG', lastIncidentTimestamp: '1970' }
{ name: 'one', integration_key: 'one_key', id: '1', policy: 'ABCDEF', lastIncidentTimestamp: '1970', status: 'active' },
{ name: '2', integration_key: 'two_key', id: '2', policy: 'ABCDEG', lastIncidentTimestamp: '1970', status: 'active' }
];
$http.whenGET(`${API.baseUrl}/pagerDuty/services`).respond(200, services);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ describe('PagerDutyTagComponent', () => {
pagerDutyReader: PagerDutyReader;

const services: IPagerDutyService[] = [
{ name: 'name1', integration_key: 'integrationKey1', id: '1', policy: 'ABCDEF', lastIncidentTimestamp: '1970' },
{ name: 'name2', integration_key: 'integrationKey2', id: '2', policy: 'ABCDEG', lastIncidentTimestamp: '1970' },
{ name: 'name3', integration_key: 'integrationKey3', id: '3', policy: 'ABCDEH', lastIncidentTimestamp: '1970' }
{ name: 'name1', integration_key: 'integrationKey1', id: '1', policy: 'ABCDEF', lastIncidentTimestamp: '1970', status: 'active' },
{ name: 'name2', integration_key: 'integrationKey2', id: '2', policy: 'ABCDEG', lastIncidentTimestamp: '1970', status: 'active' },
{ name: 'name3', integration_key: 'integrationKey3', id: '3', policy: 'ABCDEH', lastIncidentTimestamp: '1970', status: 'active' }
];

const initialize = (apiKey: string) => {
Expand Down

0 comments on commit c5c93ec

Please sign in to comment.