I have a contract developed using remix. After copying the contract over and writing mocha tests, I received the following error when running the deploy test:
Error: Invalid number of parameters for "undefined"
1) "before each" hook for "deploys a contract": Error: Invalid number of parameters for "undefined". Got 0 expected 1!
The constructor previously had used a parameter & I realized I had mistakenly left the variable type address as a parameter for the Test (contract) constructor which I didn't provide in the test. After removing the parameter (which isn't used in the constructor) the test passes.
function Test(address) public {...
It worked in remix (no errors/warnings) as I expected so I didn't catch it before copying the code over to an editor.
Does remix ignore bad parameters when it deploys a contract? Is there a way to catch this in remix?