Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump typescript from 4.3.5 to 4.4.2 #276

Merged
merged 2 commits into from
Sep 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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