You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let quorum = ethers.constants.One;
let signers = await ethers.getSigners();
expect(quorum).to.be.at.least(1);
expect(signers.length).to.be.at.least(quorum);
expect(signers).to.have.lengthOf.at.least(1);
expect([1]).to.have.lengthOf.at.least(quorum);
expect(signers).to.have.lengthOf.at.least(quorum);
All statements run successfully except for the last one.
The error message is not particularly helpful: AssertionError: Expected "[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" to be at least 1
Thanks for reporting @ItsNickBarry. Until there's fix for this, you can cast expected length to normal number expect(signers).to.have.lengthOf.at.least(quorum.toNumber())
All statements run successfully except for the last one.
The error message is not particularly helpful:
AssertionError: Expected "[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" to be at least 1
Previously reported to Hardhat.
The text was updated successfully, but these errors were encountered: