Skip to content

Commit 5390615

Browse files
committed
Update httpClient mock
Signed-off-by: Joshua Li <joshuali925@gmail.com>
1 parent da6f5cc commit 5390615

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dashboards-reports/test/httpMockClient.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ httpClientMock.get = jest.fn(() => ({
3838
})),
3939
catch: jest.fn(),
4040
})),
41+
catch: jest.fn(() => ({
42+
then: jest.fn(() => ({
43+
catch: jest.fn()
44+
})),
45+
catch: jest.fn(),
46+
})),
4147
}));
4248
httpClientMock.head = jest.fn();
4349
httpClientMock.post = jest.fn(() => ({

0 commit comments

Comments
 (0)