Skip to content

Commit

Permalink
chore(deps-dev): bump typescript from 4.3.5 to 4.4.2 (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Sep 4, 2021
1 parent cf9ca48 commit 4d9343a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -34,7 +34,7 @@
"ts-node": "10.2.1",
"typedoc": "0.21.9",
"typedoc-plugin-markdown": "3.10.4",
"typescript": "4.3.5"
"typescript": "4.4.2"
},
"engines": {
"node": ">= 10.9",
Expand Down
10 changes: 7 additions & 3 deletions src/dealing/DealingAPI.test.ts
Expand Up @@ -16,6 +16,7 @@ import {
PositionUpdateRequest,
} from './DealingAPI';
import {LoginAPI} from '../login';
import {AxiosError} from 'axios';

describe('DealingAPI', () => {
describe('getAllOpenPositions', () => {
Expand Down Expand Up @@ -421,8 +422,10 @@ describe('DealingAPI', () => {
await global.client.rest.dealing.deleteOrder(dealId);
fail('Expected error');
} catch (error) {
expect(error.isAxiosError).toBe(true);
expect(error.config['axios-retry'].retryCount).toBe(amountOfRetries);
const axiosError = error as AxiosError;
expect(axiosError.isAxiosError).toBe(true);
// Any typing because of: https://github.com/softonic/axios-retry/pull/174
expect((axiosError.config['axios-retry'] as any).retryCount).toBe(amountOfRetries);
}
}, 10_000);

Expand Down Expand Up @@ -504,8 +507,9 @@ describe('DealingAPI', () => {
await apiClient.rest.dealing.deleteOrder(dealId);
fail('Expected error');
} catch (error) {
const expectedError = error as Error;
expect(createSession).not.toHaveBeenCalled();
expect(error.message).toBe(
expect(expectedError.message).toBe(
'Cannot fulfill request because there is no active session and username & password have not been provided.'
);
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2424,10 +2424,10 @@ typedoc@0.21.9:
shiki "^0.9.8"
typedoc-default-themes "^0.12.10"

typescript@4.3.5:
version "4.3.5"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
typescript@4.4.2:
version "4.4.2"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86"
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==

uglify-js@^3.1.4:
version "3.12.6"
Expand Down

0 comments on commit 4d9343a

Please sign in to comment.