Skip to content

Commit

Permalink
Fixing types check
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Dec 10, 2020
1 parent dd3b29a commit 46e8025
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/plugins/alerts/server/routes/update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { mockLicenseState } from '../lib/license_state.mock';
import { verifyApiAccess } from '../lib/license_api_access';
import { mockHandlerArguments } from './_mock_handler_arguments';
import { alertsClientMock } from '../alerts_client.mock';
import { AlertNotifyWhenType } from '../../common';

const alertsClient = alertsClientMock.create();
jest.mock('../lib/license_api_access.ts', () => ({
Expand Down Expand Up @@ -41,7 +42,7 @@ describe('updateAlertRoute', () => {
},
},
],
notifyWhen: 'onActionGroupChange',
notifyWhen: 'onActionGroupChange' as AlertNotifyWhenType,
};

it('updates an alert with proper parameters', async () => {
Expand Down

0 comments on commit 46e8025

Please sign in to comment.