Greeter.behavior.ts 426 B

1234567891011
  1. import { Signer } from "@ethersproject/abstract-signer";
  2. import { expect } from "chai";
  3. export function shouldBehaveLikeGreeter(_signers: Signer[]): void {
  4. it("should return the new greeting once it's changed", async function () {
  5. expect(await this.greeter.greet()).to.equal("Hello, world!");
  6. await this.greeter.setGreeting("Hola, mundo!");
  7. expect(await this.greeter.greet()).to.equal("Hola, mundo!");
  8. });
  9. }