-
Notifications
You must be signed in to change notification settings - Fork 38
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
jasmine.anything() does not match anymore #66
Comments
I just upgraded from 0.6.0 to 0.8.1 (and also tried 0.8.0), and am experiencing the same thing. It seems as though Jest expects that result.message is a function, and so if the message property exists, it tries to CALL it. In jasmine-marbles 0.6.0, the message WAS a function, so this works fine. In 0.8.x the message is now just a string, and Jest fails. |
If someone wants to put in a PR to fix, that would be great |
Closed via #86 |
Fix released in |
Hello,
I just updated from jasmine-marbles 0.6.0 to 0.8.1 and now a lot of tests fail like this:
Trying to build a minimal working example that works on 0.6.0 but fails on 0.8.1 got me to the following:
This test fails like this:
It seems that
jasmine.anything()
does want to match{}
. So I tried this, but it fails, too:Any help is appreciated! Here is an excerpt from my dependencies, in case it is helpful:
Is this related to #11 or #55 ?
EDIT: I just tried different versions. This error does not happen on 0.8.0, which seems to be the latest tag on github. However, the latest npm package is 0.8.1, and there the fault occurs. So #65 seems to be the cause.
The text was updated successfully, but these errors were encountered: