epicNFT/test/epicNFT.spec.js
2022-04-07 08:01:01 -04:00

14 lines
427 B
JavaScript

const { expect } = require("chai");
const { ethers } = require("hardhat");
describe("EpicNFT", function () {
it("Should increment token count after each mint", async () => {
const EpicNFT = await ethers.getContractFactory("EpicNFT");
const contract = await EpicNFT.deploy();
await contract.deployed();
const txn = await contract.mint();
txn.wait();
expect(contract._tokenIds).to.equal(1);
});
});