mirror of
https://github.com/rjNemo/epicNFT
synced 2026-06-06 01:46:38 +00:00
14 lines
427 B
JavaScript
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);
|
|
});
|
|
});
|