Skip to content

Commit

Permalink
chore: Add unit test to the subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls committed Oct 20, 2023
1 parent f6cd610 commit afae095
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions subgraph/tests/schema-registry.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, assert, clearStore, describe, test } from "matchstick-as";
import { BigInt, ethereum } from "@graphprotocol/graph-ts";
import { ethereum } from "@graphprotocol/graph-ts";
import { newTypedMockEvent } from "matchstick-as/assembly/defaults";
import { handleSchemaCreated } from "../src/schema-registry";
import { SchemaCreated, SchemaCreated as SchemaCreatedEvent } from "../generated/SchemaRegistry/SchemaRegistry";
Expand Down Expand Up @@ -47,9 +47,7 @@ function createSchemaCreatedEvent(
): SchemaCreated {
const schemaCreatedEvent = newTypedMockEvent<SchemaCreatedEvent>();

schemaCreatedEvent.parameters.push(
new ethereum.EventParam("id", ethereum.Value.fromI32(BigInt.fromString(schemaId).toI32())),
);
schemaCreatedEvent.parameters.push(new ethereum.EventParam("id", ethereum.Value.fromString(schemaId)));
schemaCreatedEvent.parameters.push(new ethereum.EventParam("name", ethereum.Value.fromString(schemaName)));
schemaCreatedEvent.parameters.push(
new ethereum.EventParam("description", ethereum.Value.fromString(schemaDescription)),
Expand Down

0 comments on commit afae095

Please sign in to comment.