Skip to content

Commit

Permalink
Fix unit test for new way of get
Browse files Browse the repository at this point in the history
Signed-off-by: Judy Ng <[email protected]>
  • Loading branch information
judysng committed Mar 1, 2024
1 parent 41e4369 commit 64013d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/__tests__/ListClusters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ const mockCluster2: ClusterInfoSummary = {
const mockGet = jest.fn()

jest.mock('axios', () => ({
create: () => ({
get: (...args: unknown[]) => mockGet(...args),
}),
get: (...args: unknown[]) => mockGet(...args),
create: (...args: unknown[]) => jest.fn(),
}))

describe('given a ListClusters command', () => {
Expand Down

0 comments on commit 64013d2

Please sign in to comment.