Skip to content

Commit

Permalink
fix util tests
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Sebastian <paulstn@dev-dsk-paulstn-2b-a4d3f011.us-west-2.amazon.com>
  • Loading branch information
Paul Sebastian committed Oct 9, 2024
1 parent ec5c9d5 commit ef744b6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/plugins/data/public/antlr/shared/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ describe('fetchData', () => {
...mockQuery,
},
}));
const mockApi = {
http: {
fetch: jest.fn().mockResolvedValue('fetchedData'),
},
const mockApi: any = {
fetch: jest.fn().mockResolvedValue('fetchedData'),
};
const mockQueryString: Partial<QueryStringManager> = {
getUpdates$: jest.fn().mockReturnValue(of(mockQuery)),
Expand All @@ -51,10 +49,8 @@ describe('fetchData', () => {
const mockQueryFormatter = jest.fn((table) => ({
query: { qs: `formatted ${table}`, format: 'jdbc', ...mockQuery },
}));
const mockApi = {
http: {
fetch: jest.fn().mockResolvedValue('fetchedData'),
},
const mockApi: any = {
fetch: jest.fn().mockResolvedValue('fetchedData'),
};
const mockQueryString: Partial<QueryStringManager> = {
getUpdates$: jest.fn().mockReturnValue(of(undefined)),
Expand Down

0 comments on commit ef744b6

Please sign in to comment.