Replies: 1 comment
-
|
Please share your repo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
const { getNamedAccounts, deployments, ethers, network } = require("hardhat") const { developmentChains, networkConfig } = require("../../helper-hardhat-config") const { assert } = require("chai") !developmentChains.includes(network.name) ? describe.skip : describe("Raffle Unit Tests", function () { let raffle, vrfCoordinatorV2Mock const chainId = network.config.chainId beforeEach(async () => { const { deployer } = await getNamedAccounts() await deployments.fixture(["all"]) raffle = await ethers.getContractAt("Raffle", deployer) vrfCoordinatorV2Mock = await ethers.getContractAt("VRFCoordinatorV2Mock", deployer) }) describe("constructor", async function () { it("initializes the raffle correctly", async () => { const raffleState = (await raffle.getRaffleState()).toString() assert.equal(raffleState, "0") const interval = await raffle.getInterval() assert.equal(interval.toString(), networkConfig[chainId]["interval"]) }) }) })error is:
can anyone help me out ....Thank you
Beta Was this translation helpful? Give feedback.
All reactions