From 0983ce3be33377a5ec02e91e9176e669bf27b044 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Sat, 6 Apr 2024 11:04:02 -0700 Subject: [PATCH] fix test --- test/ERC721ContractMetadata.spec.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/test/ERC721ContractMetadata.spec.ts b/test/ERC721ContractMetadata.spec.ts index 4223a94..ccc0089 100644 --- a/test/ERC721ContractMetadata.spec.ts +++ b/test/ERC721ContractMetadata.spec.ts @@ -110,18 +110,11 @@ describe(`ERC721ContractMetadata (v${VERSION})`, function () { }); it("Should not let the owner set the max supply over the totalMinted", async () => { - await token.setMaxSupply(3); - await whileImpersonating( - seadrop.address, - provider, - async (impersonatedSigner) => { - await token.connect(impersonatedSigner).mintSeaDrop(owner.address, 3); - } - ); - expect(await token.totalSupply()).to.equal(3); + expect(await token.maxSupply()).to.equal(25); + expect(await token.totalSupply()).to.equal(2); - await expect(token.setMaxSupply(2)).to.be.revertedWith( - "NewMaxSupplyCannotBeLessThenTotalMinted(2, 3)" + await expect(token.setMaxSupply(1)).to.be.revertedWith( + "NewMaxSupplyCannotBeLessThenTotalMinted(1, 2)" ); });