Greeter.behavior.ts 417 B

1234567891011
  1. import { Wallet } from "@ethersproject/wallet";
  2. import { expect } from "chai";
  3. export function shouldBehaveLikeGreeter(_wallets: Wallet[]): 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. }