Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jianlunz-cb committed Dec 18, 2024
1 parent f27028d commit 4246f4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/smart_contract_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe("SmartContract", () => {
});
});

describe("SmartContract.register", () => {
describe(".register", () => {
const networkId = erc20ExternalModel.network_id;
const contractName = erc20ExternalModel.contract_name;
const contractAddress = erc20ExternalModel.contract_address;
Expand Down Expand Up @@ -89,7 +89,7 @@ describe("SmartContract", () => {
expect(smartContract.getContractAddress()).toBe(contractAddress);
});

it("should throw an error if creation fails", async () => {
it("should throw an error if register fails", async () => {
Coinbase.apiClients.smartContract!.registerSmartContract = jest
.fn()
.mockRejectedValue(new Error("Failed to register the smart contract"));
Expand All @@ -99,7 +99,7 @@ describe("SmartContract", () => {
});
});

describe("SmartContract.update", () => {
describe(".update", () => {
const networkId = erc20ExternalModel.network_id;
const contractAddress = erc20ExternalModel.contract_address;

Expand Down Expand Up @@ -133,7 +133,7 @@ describe("SmartContract", () => {
expect(smartContract.getContractName()).toEqual(updatedContract.contract_name);
});

it("should throw an error if creation fails", async () => {
it("should throw an error if update fails", async () => {
Coinbase.apiClients.smartContract!.updateSmartContract = jest
.fn()
.mockRejectedValue(new Error("Failed to update the smart contract"));
Expand Down

0 comments on commit 4246f4a

Please sign in to comment.