Skip to content

Commit

Permalink
chore: add test to verify not undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris committed Sep 8, 2023
1 parent 6e9d8bc commit cdf2ad0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/Relayer.BasicFill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,10 @@ describe("Relayer: Check for Unfilled Deposits and Fill", function () {
// Fish the DepositWithBlock directly out of the SpokePoolClient;
// confirm that the realizedLpFeePct is _not_ the UBA systemFee.
const _deposit = spokePoolClients[originChainId].getDepositsForDestinationChain(destinationChainId)[0];
expect(_deposit.realizedLpFeePct).to.not.be.undefined;
expect(_deposit.depositId).to.eq(deposit1?.depositId);
expect(_deposit.realizedLpFeePct?.gt(0)).to.not.be.undefined.and.to.be.true;
expect(_deposit.realizedLpFeePct?.eq(expectedSystemFeePct)).to.not.be.undefined.and.to.be.false;
expect(_deposit.realizedLpFeePct?.gt(0)).to.be.true;
expect(_deposit.realizedLpFeePct?.eq(expectedSystemFeePct)).to.be.false;

await relayerInstance.checkForUnfilledDepositsAndFill();
expect(lastSpyLogIncludes(spy, "Filling deposit")).to.be.true;
Expand Down

0 comments on commit cdf2ad0

Please sign in to comment.