Skip to content

Commit

Permalink
Addressing PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
adcoelho committed Jun 20, 2023
1 parent dd2fc8e commit d54736d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/cases/server/client/cases/find.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('find', () => {
);
});

it(`invalid category array with > ${MAX_CATEGORY_FILTER_LENGTH} items`, async () => {
it(`throws an error when the category array has ${MAX_CATEGORY_FILTER_LENGTH} items`, async () => {
const category = Array(MAX_CATEGORY_FILTER_LENGTH + 1).fill('foobar');

const findRequest = createCasesClientMockFindRequest({ category });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export default ({ getService }: FtrProviderContext): void => {
});
});

it('unhappy path - 400s when bad category field supplied', async () => {
it('unhappy path - 400s when more than the maximum category fields are supplied', async () => {
const category = Array(MAX_CATEGORY_FILTER_LENGTH + 1).fill('foobar');

await findCases({ supertest, query: { category }, expectedHttpCode: 400 });
Expand Down

0 comments on commit d54736d

Please sign in to comment.