Skip to content

Commit

Permalink
Clearer assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rylnd committed Nov 10, 2020
1 parent 1b4188f commit fde464e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ describe('EQL search strategy', () => {
});

describe('response', () => {
it('contains a rawResponse with body and meta', async () => {
it('contains a rawResponse field containing the full search response', async () => {
const eqlSearch = await eqlSearchStrategyProvider(mockLogger);
const response = await eqlSearch
.search({ id: 'my-search-id', options: { ignore: [400] } }, {}, mockDeps)
Expand All @@ -206,9 +206,9 @@ describe('EQL search strategy', () => {
expect(response).toEqual(
expect.objectContaining({
rawResponse: expect.objectContaining({
body: expect.any(Object),
meta: expect.any(Object),
statusCode: 200,
body: getMockEqlResponse().body,
meta: getMockEqlResponse().meta,
statusCode: getMockEqlResponse().statusCode,
}),
})
);
Expand Down

0 comments on commit fde464e

Please sign in to comment.