text: const { expect } = require("chai");
  const { ethers } = require("hardhat");
  
  describe("Greeter", function () {
    it("Should return the new greeting once it's changed", async function () {
      const Marketplace = await ethers.getContractFactory("Marketplace");
      const marketplace = await Marketplace.deploy("Hello, world!");
      await marketplace.deployed();
  
      expect(await marketplace.greet()).to.equal("Hello, world!");
  
      const setMarketplaceTx = await marketplace.setGreeting("Hola, mundo!");
  
      // wait until the transaction is mined
      await setMarketplaceTx.wait();
  
      expect(await marketplace.greet()).to.equal("Hola, mundo!");
    });
  });
  