Skip to content

Commit

Permalink
Update esaggs.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Aug 18, 2022
1 parent ee154e2 commit 3bc324a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/server/search/expressions/esaggs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('esaggs expression function - server', () => {
expect(getStartDependencies).toHaveBeenCalledWith({ id: 'hi' });
});

test('calls indexPatterns.get with the values provided by the subexpression arg', async () => {
test('calls indexPatterns.create with the values provided by the subexpression arg', async () => {
await definition().fn(null, args, mockHandlers).toPromise();

expect(startDependencies.indexPatterns.create).toHaveBeenCalledWith(args.index.value, true);
Expand Down

0 comments on commit 3bc324a

Please sign in to comment.