diff --git a/packages/processors/src/processors/registry/handlers/roleRevoked.handler.ts b/packages/processors/src/processors/registry/handlers/roleRevoked.handler.ts index dc22880..a6154bc 100644 --- a/packages/processors/src/processors/registry/handlers/roleRevoked.handler.ts +++ b/packages/processors/src/processors/registry/handlers/roleRevoked.handler.ts @@ -22,6 +22,7 @@ export class RoleRevokedHandler implements IEventHandler<"Registry", "RoleRevoke readonly chainId: ChainId, private dependencies: Dependencies, ) {} + /* @inheritdoc */ async handle(): Promise { const { projectRepository } = this.dependencies; const account = getAddress(this.event.params.account); diff --git a/packages/processors/test/registry/handlers/profileMetadataUpdated.handler.spec.ts b/packages/processors/test/registry/handlers/profileMetadataUpdated.handler.spec.ts index 710666c..7404bf2 100644 --- a/packages/processors/test/registry/handlers/profileMetadataUpdated.handler.spec.ts +++ b/packages/processors/test/registry/handlers/profileMetadataUpdated.handler.spec.ts @@ -12,7 +12,6 @@ describe("ProfileMetadataUpdatedHandler", () => { metadata: [0, mockCid], profileId: "mockProfileId", }, - // Add other necessary event properties here } as ProcessorEvent<"Registry", "ProfileMetadataUpdated">; const mockDependencies = { diff --git a/packages/processors/test/registry/handlers/roleGranted.handler.spec.ts b/packages/processors/test/registry/handlers/roleGranted.handler.spec.ts index c6a6da1..1a7aaa4 100644 --- a/packages/processors/test/registry/handlers/roleGranted.handler.spec.ts +++ b/packages/processors/test/registry/handlers/roleGranted.handler.spec.ts @@ -9,7 +9,7 @@ import { } from "@grants-stack-indexer/shared"; import { ProcessorDependencies } from "../../../src/internal.js"; -import { RoleGrantedHandler } from "../../../src/processors/registry/handlers/index.js"; // Adjust path if needed +import { RoleGrantedHandler } from "../../../src/processors/registry/handlers/index.js"; describe("RoleGrantedHandler", () => { const mockProjectRepository = { diff --git a/packages/processors/test/registry/handlers/roleRevoked.handler.spec.ts b/packages/processors/test/registry/handlers/roleRevoked.handler.spec.ts index 432c43d..a602ad2 100644 --- a/packages/processors/test/registry/handlers/roleRevoked.handler.spec.ts +++ b/packages/processors/test/registry/handlers/roleRevoked.handler.spec.ts @@ -70,7 +70,10 @@ describe("RoleRevokedHandler", () => { }); it("throw an error when getProjectById fails", async () => { - const error = new Error("Database error"); + const error = new ProjectByRoleNotFound( + mockEvent.chainId as ChainId, + mockEvent.params.role, + ); vi.spyOn(mockDependencies.projectRepository, "getProjectById").mockRejectedValueOnce(error); const handler = new RoleRevokedHandler(mockEvent, mockChainId, mockDependencies);