Skip to content

Commit 64013d2

Browse files
committed
Fix unit test for new way of get
Signed-off-by: Judy Ng <njud@amazon.com>
1 parent 41e4369 commit 64013d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/src/__tests__/ListClusters.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ const mockCluster2: ClusterInfoSummary = {
2323
const mockGet = jest.fn()
2424

2525
jest.mock('axios', () => ({
26-
create: () => ({
27-
get: (...args: unknown[]) => mockGet(...args),
28-
}),
26+
get: (...args: unknown[]) => mockGet(...args),
27+
create: (...args: unknown[]) => jest.fn(),
2928
}))
3029

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

0 commit comments

Comments
 (0)