Skip to content

Commit

Permalink
fixing index test
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Li <lnse@amazon.com>
  • Loading branch information
sejli committed Oct 8, 2024
1 parent 9a98187 commit d071b25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('DatasetSelector', () => {
getDatasetService: jest.fn().mockReturnValue({
getType: getTypeMock,
getRecentDatasets: jest.fn().mockReturnValue([]),
addRecentDatasets: jest.fn(),
addRecentDataset: jest.fn(),
}),
},
});
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/data/public/ui/dataset_selector/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ describe('ConnectedDatasetSelector', () => {
getDefaultQuery: jest.fn().mockReturnValue({}),
getInitialQueryByDataset: jest.fn().mockReturnValue({}),
setQuery: jest.fn(),
getDatasetService: jest.fn().mockReturnValue({
addRecentDataset: jest.fn(),
}),
};
const mockOnSubmit = jest.fn();
const mockServices = {
Expand Down

0 comments on commit d071b25

Please sign in to comment.