Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Calling expect.hasAssertions(3) results in no change from the behavior of expect.hasAssertions(). This is confusing with the expect.assertions(<n>) API that does change based on the parameters.
What is the expected behavior?
expect.hasAssertions(<any>) should throw an error like other expectations that ensure no expected paramters.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
jest@20.0.0
jest-cli@20.0.0
babel-jest@20.0.0
npm@3.10.10
node@6.10.2
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Calling
expect.hasAssertions(3)results in no change from the behavior ofexpect.hasAssertions(). This is confusing with theexpect.assertions(<n>)API that does change based on the parameters.What is the expected behavior?
expect.hasAssertions(<any>)should throw an error like other expectations that ensure no expected paramters.Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
jest@20.0.0jest-cli@20.0.0babel-jest@20.0.0npm@3.10.10node@6.10.2