Skip to content

Commit

Permalink
fix: test compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagalidoom committed Sep 30, 2024
1 parent 992aba1 commit ce03aa0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions envio/test/Test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import {
import {
TestHelpers,
SBCDepositContract_DepositEvent
} from "generated";
Expand All @@ -10,7 +10,7 @@ describe("SBCDepositContract contract DepositEvent event tests", () => {
const mockDb = MockDb.createMockDb();

// Creating mock for SBCDepositContract contract DepositEvent event
const event = SBCDepositContract.DepositEvent.createMockEvent({/* It mocks event fields with default values. You can overwrite them if you need */});
const event = SBCDepositContract.DepositEvent.createMockEvent({/* It mocks event fields with default values. You can overwrite them if you need */ });

it("SBCDepositContract_DepositEvent is created correctly", async () => {
// Processing the event
Expand All @@ -26,6 +26,7 @@ describe("SBCDepositContract contract DepositEvent event tests", () => {

// Creating the expected entity
const expectedSBCDepositContractDepositEvent: SBCDepositContract_DepositEvent = {
chainId: event.chainId,
id: `${event.chainId}_${event.block.number}_${event.logIndex}`,
pubkey: event.params.pubkey,
withdrawal_credentials: event.params.withdrawal_credentials,
Expand Down

0 comments on commit ce03aa0

Please sign in to comment.