Skip to content

Commit

Permalink
Update sortToSnake tests to check new field.
Browse files Browse the repository at this point in the history
  • Loading branch information
adcoelho committed Dec 12, 2022
1 parent f4a144f commit fa9f090
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugins/cases/server/client/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ describe('utils', () => {
expect(sortToSnake('closed_at')).toBe('closed_at');
});

it('transforms title correctly', () => {
expect(sortToSnake('title')).toBe('title.keyword');
});

it('transforms default correctly', () => {
expect(sortToSnake('not-exist')).toBe('created_at');
});
Expand Down

0 comments on commit fa9f090

Please sign in to comment.