Skip to content

Commit

Permalink
Update httpClient mock
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 committed Oct 15, 2021
1 parent da6f5cc commit 5390615
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dashboards-reports/test/httpMockClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ httpClientMock.get = jest.fn(() => ({
})),
catch: jest.fn(),
})),
catch: jest.fn(() => ({
then: jest.fn(() => ({
catch: jest.fn()
})),
catch: jest.fn(),
})),
}));
httpClientMock.head = jest.fn();
httpClientMock.post = jest.fn(() => ({
Expand Down

0 comments on commit 5390615

Please sign in to comment.