Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisamir98 committed Oct 10, 2024
1 parent ea1ce9b commit 3e76752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/api-client/src/http/HttpClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('HttpClient', () => {
return Promise.resolve(mockedAccessTokenStore.accessToken!);
};

await client._sendRequest({method: 'GET', baseURL: testConfig.urls.rest, url: AuthAPI.URL.ACCESS});
await client._sendRequest({config: {method: 'GET', baseURL: testConfig.urls.rest, url: AuthAPI.URL.ACCESS}});
});

it('does not retry on 403 invalid token', async () => {
Expand All @@ -73,7 +73,7 @@ describe('HttpClient', () => {
let backendError;

try {
await client._sendRequest({method: 'GET', baseURL: testConfig.urls.rest, url: AuthAPI.URL.ACCESS});
await client._sendRequest({config: {method: 'GET', baseURL: testConfig.urls.rest, url: AuthAPI.URL.ACCESS}});
throw new Error('Should not resolve');
} catch (error) {
backendError = error;
Expand All @@ -97,7 +97,7 @@ describe('HttpClient', () => {
};
let backendError;
try {
await client._sendRequest({method: 'GET', baseURL: testConfig.urls.rest, url: AuthAPI.URL.ACCESS});
await client._sendRequest({config: {method: 'GET', baseURL: testConfig.urls.rest, url: AuthAPI.URL.ACCESS}});
throw new Error('Should not resolve');
} catch (error) {
backendError = error;
Expand Down

0 comments on commit 3e76752

Please sign in to comment.