Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Regression: Allow toHaveBeenCalledWith and related functions to test calls with no arguments #1951

Merged
merged 3 commits into from
Oct 19, 2016

Commits on Oct 19, 2016

  1. Add failing test for expecting a function to have been called with no

    arguments
    
    This behavior broke in Jest 16, so adding a test to document it for the
    future.  Also renamed another test that appeared to cover this case but
    did not.
    Ben McCormick committed Oct 19, 2016
    Configuration menu
    Copy the full SHA
    1ed750e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/facebook/jest

    Ben McCormick committed Oct 19, 2016
    Configuration menu
    Copy the full SHA
    d515c61 View commit details
    Browse the repository at this point in the history
  3. Allow testing whether a test has been called with 0 arguments

    Code was previously assuming at least one argument, but that
    assumption failed when a function was called with no args.
    Ben McCormick committed Oct 19, 2016
    Configuration menu
    Copy the full SHA
    d773e63 View commit details
    Browse the repository at this point in the history