Skip to content

Fix undefined owner #125

Fix undefined owner

Fix undefined owner #125

Triggered via pull request May 28, 2025 00:59
Status Failure
Total duration 1m 31s
Artifacts

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors
error: expect(received).toHaveProperty(path): tests/tests/getTransactions/getTransactions.test.ts#L66
Expected path: "Target" Unable to find property at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/getTransactions/getTransactions.test.ts:66:38) at forEach (1:11) at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/getTransactions/getTransactions.test.ts:65:22) at forEach (1:11) at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/getTransactions/getTransactions.test.ts:42:31)
error: Error in liquidate function: Error: Please specify token: src/functions/liquidations/liquidate.ts#L100
at liquidate (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/src/functions/liquidations/liquidate.ts:100:11) at liquidate (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/src/functions/liquidations/liquidate.ts:28:3) at liquidate (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/src/index.ts:168:19) at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/liquidations/liquidate.test.ts:19:31) at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/liquidations/liquidate.test.ts:9:3)
error: expect(received).toBeTypeOf(): tests/tests/utils/transfer.test.ts#L26
Expected type: "boolean" Received type: "undefined" Received value: undefined at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/utils/transfer.test.ts:26:24)
error: Error getting balance: ReferenceError: window is not defined: src/functions/utils/getBalance.ts#L23
at getBalance (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/src/functions/utils/getBalance.ts:23:11)
error: expect(received).toBe(expected): tests/tests/protocolData/getAllPositions.test.ts#L23
Expected: "bigint" Received: "undefined" at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/protocolData/getAllPositions.test.ts:23:33)
error: Error in getExchangeRate function: Error: Please specify a token and quantity.: src/functions/oTokenData/getExchangeRate.ts#L34
at getExchangeRate (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/src/functions/oTokenData/getExchangeRate.ts:34:11) at getExchangeRate (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/src/functions/oTokenData/getExchangeRate.ts:11:38) at getExchangeRate (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/src/index.ts:186:25) at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/oTokenData/getExchangeRate.test.ts:16:30) at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/oTokenData/getExchangeRate.test.ts:6:34)
error: expect(received).toBe(expected): tests/tests/oTokenData/getBalances.test.ts#L22
Expected: 1 Received: 23 at <anonymous> (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/tests/tests/oTokenData/getBalances.test.ts:22:37)
error: Error in getPosition function: Error: Error sending ao dryrun: SyntaxError: Failed to parse JSON: src/functions/oTokenData/getPosition.ts#L56
at getPosition (/Users/runner/work/LiquidOps-JS/LiquidOps-JS/src/functions/oTokenData/getPosition.ts:56:11)