Skip to content

Commit

Permalink
[TS migration][G3] Updated response type
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-rebelo committed Mar 12, 2024
1 parent fd7802b commit 873493f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/TestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function signInWithTestUser(accountID = 1, login = '[email protected]', password = '
return waitForBatchedUpdates()
.then(() => {
HttpUtils.xhr = jest.fn().mockImplementation(() => {
const mockedResponse = {
const mockedResponse: OnyxResponse = {
onyxData: [
{
onyxMethod: Onyx.METHOD.MERGE,
Expand Down Expand Up @@ -137,7 +137,7 @@ function signInWithTestUser(accountID = 1, login = '[email protected]', password = '
function signOutTestUser() {
const originalXhr = HttpUtils.xhr;
HttpUtils.xhr = jest.fn().mockImplementation(() => {
const mockedResponse = {
const mockedResponse: OnyxResponse = {
jsonCode: 200,
};

Expand Down

0 comments on commit 873493f

Please sign in to comment.