mirror of
https://github.com/PaulRBerg/hardhat-template.git
synced 2026-01-12 23:48:25 -05:00
12 lines
426 B
TypeScript
12 lines
426 B
TypeScript
import { Signer } from "@ethersproject/abstract-signer";
|
|
import { expect } from "chai";
|
|
|
|
export function shouldBehaveLikeGreeter(_signers: Signer[]): void {
|
|
it("should return the new greeting once it's changed", async function () {
|
|
expect(await this.greeter.greet()).to.equal("Hello, world!");
|
|
|
|
await this.greeter.setGreeting("Hola, mundo!");
|
|
expect(await this.greeter.greet()).to.equal("Hola, mundo!");
|
|
});
|
|
}
|