You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
699 B

import { MockContract, smock } from '@defi-wonderland/smock';
import { expect, use } from 'chai';
import { NFT, NFT__factory } from '../typechain';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { ethers } from 'hardhat';
use(smock.matchers);
describe('nft', async () => {
let nft: MockContract<NFT>;
let admin: SignerWithAddress;
beforeEach(async () => {
[ admin ] = await ethers.getSigners();
const nftMockFactory = await smock.mock<NFT__factory>('NFT');
nft = await nftMockFactory.deploy();
});
it('should initially have isPresale = true', async () => {
expect(await nft.isPresale()).to.be.true;
})
});