Skip to content

Commit

Permalink
Some warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed Mar 9, 2024
1 parent e1d5358 commit 5ac46a8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ jobs:
timeout-minutes: 3
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.17.1

- name: Prepare
run: yarn install --frozen-lockfile

- name: Type Check
run: yarn type-check

- name: Lint Check
run: yarn lint
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:

steps:
- name: "Checkout source code"
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"
with:
ref: ${{ github.ref }}

# Setup Node.js
- name: "Setup Node.js"
uses: "actions/setup-node@v3"
uses: "actions/setup-node@v4"
with:
node-version: 18.17.1

Expand Down
1 change: 0 additions & 1 deletion src/tests/unit/api-next-live/get-contract-details.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe("ApiNext: getContractDetails()", () => {

const clientId = Math.floor(Math.random() * 32766) + 1; // ensure unique client

let subscription$: Subscription;
let api: IBApiNext;
let error$: Subscription;

Expand Down
4 changes: 2 additions & 2 deletions src/tests/unit/api/order/placeOrder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("Place Orders", () => {
refId = orderId;
ib.placeOrder(refId, refContract, refOrder);
})
.on(EventName.openOrder, (orderId, contract, order, orderState) => {
.on(EventName.openOrder, (orderId, contract, order, _orderState) => {
if (orderId == refId) {
expect(contract.symbol).toEqual(refContract.symbol);
expect(order.totalQuantity).toEqual(refOrder.totalQuantity);
Expand Down Expand Up @@ -131,7 +131,7 @@ describe("Place Orders", () => {
refId = orderId;
ib.placeOrder(refId, refContract, refOrder);
})
.on(EventName.openOrder, (orderId, contract, order, orderState) => {
.on(EventName.openOrder, (orderId, contract, order, _orderState) => {
if (orderId == refId) {
expect(contract.symbol).toEqual(refContract.symbol);
expect(order.totalQuantity).toEqual(refOrder.totalQuantity);
Expand Down

0 comments on commit 5ac46a8

Please sign in to comment.