-
Around here https://youtu.be/gyMwXuJrbJQ?t=34492 I'm hitting the error posted below. Eyes are crossing trying to find which variable is undefined (?) const { ethers } = require("hardhat");
const { expect, assert } = require("chai");
describe("SimpleStorage", function () {
let simpleStorage, SimpleStorageFactory;
beforeEach(async function () {
SimpleStorageFactory = await ethers.getContractFactory("SimpleStorage");
simpleStorage = await SimpleStorageFactory.deploy();
});
it("Should start with a favorite number of zero", async function () {
const currentValue = await simpleStorage.retreive();
const expectedValue = "0";
assert.equal(currentValue.toString(), expectedValue);
});
it();
it();
it();
}); |
Beta Was this translation helpful? Give feedback.
Answered by
Magofoco
Jun 9, 2022
Replies: 1 comment 3 replies
-
Can you try to remove the 3 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Equious
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you try to remove the 3
it()
?