Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yansavitski committed May 3, 2023
1 parent 33e0be1 commit 726ab7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ describe("analytics plugin", () => {
eaPlugin.subscribe({
type: "SearchQuery",
query: "test",
totalResults: 0
totalResults: 0,
filters: []
});
expect(window["elasticAnalytics"].trackEvent).not.toBeCalled();
expect(internalClient.trackEvent).toBeCalled();
Expand All @@ -36,10 +37,12 @@ describe("analytics plugin", () => {
eaPlugin.subscribe({
type: "SearchQuery",
query: "test",
totalResults: 0
totalResults: 0,
filters: []
});
expect(window["elasticAnalytics"].trackEvent).toBeCalledWith("search", {
search: {
filters: {},
page: {
current: undefined,
size: undefined
Expand Down
1 change: 1 addition & 0 deletions packages/search-ui/src/__tests__/SearchDriver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ describe("_updateSearchResults", () => {
resultsPerPage: 20,
sort: undefined,
totalResults: 1000,
filters: [],
type: "SearchQuery"
});
});
Expand Down

0 comments on commit 726ab7a

Please sign in to comment.