Skip to content

Commit

Permalink
chore: revise types
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris committed Sep 6, 2023
1 parent b70d1d4 commit 61b900f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Dataworker.proposeRootBundle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HubPoolClient, MultiCallerClient, SpokePoolClient } from "../src/clients";
import { AnyObject, EMPTY_MERKLE_ROOT, MAX_UINT_VAL, getDepositPath } from "../src/utils";
import { EMPTY_MERKLE_ROOT, MAX_UINT_VAL, getDepositPath } from "../src/utils";
import { CHAIN_ID_TEST_LIST, amountToDeposit, destinationChainId, originChainId, utf8ToHex } from "./constants";
import { setupFastDataworker } from "./fixtures/Dataworker.Fixture";
import {
Expand Down Expand Up @@ -58,8 +58,8 @@ describe("Dataworker: Propose root bundle", async function () {
const getMostRecentLog = (_spy: sinon.SinonSpy, message: string) => {
return spy
.getCalls()
.sort((logA: { callId: number }, logB: { callId: number }) => logB.callId - logA.callId) // Sort by callId in descending order
.find((log: AnyObject) => log.lastArg["message"].includes(message)).lastArg;
.sort((logA: unknown, logB: unknown) => logB["callId"] - logA["callId"]) // Sort by callId in descending order
.find((log: unknown) => log["lastArg"]["message"].includes(message)).lastArg;
};

// TEST 1:
Expand Down

0 comments on commit 61b900f

Please sign in to comment.