Initial commit

This commit is contained in:
2022-07-25 18:40:16 +03:00
commit 843daad632
21 changed files with 47507 additions and 0 deletions

24
test/nft.ts Normal file
View File

@@ -0,0 +1,24 @@
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;
})
});