Skip to content

Commit

Permalink
Address comments - Round 2
Browse files Browse the repository at this point in the history
  • Loading branch information
madirey committed Feb 4, 2020
1 parent 61143de commit 6305dc0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions x-pack/plugins/endpoint/server/routes/alerts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ describe('test alerts route', () => {
let routeConfig: RouteConfig<any, any, any, any>;

beforeEach(() => {
mockClusterClient = elasticsearchServiceMock.createClusterClient() as jest.Mocked<
IClusterClient
>;
mockClusterClient = elasticsearchServiceMock.createClusterClient();
mockScopedClient = elasticsearchServiceMock.createScopedClusterClient();
mockClusterClient.asScoped.mockReturnValue(mockScopedClient);
routerMock = httpServiceMock.createRouter();
Expand Down Expand Up @@ -151,7 +149,7 @@ describe('test alerts route', () => {

it('should return alert results according to pagination params -- GET', async () => {
const mockRequest = httpServerMock.createKibanaRequest({
path: '/api/endpoint/alerts?page_size=20&page_index=2',
path: '/api/endpoint/alerts',
query: {
page_size: 20,
page_index: 2,
Expand Down

0 comments on commit 6305dc0

Please sign in to comment.