-
Notifications
You must be signed in to change notification settings - Fork 14
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
Asserting on a property that is a specific data type #60
Comments
I'm currently having the exact same problem. I think that the problem is that
doesn't return the property, but instead returns this the "manyRecords" array, so our tests fails. I think that there should be a work around, but it'd be nice to be able to apply this kind of syntax |
I just started using chai-things and immediately ran into this issue. |
+1 |
1 similar comment
+1 |
I just started using mocha and chai, so I'm not sure if my issue is the same as this one, but I have an array which is a list of English word strings; the following assertion:
gives me the test result:
|
Based on chai's property assertion, I am able to do the following for an object:
But with
chai-things
, I get the following error when I try to run the following code:Although removing the data type (date) assertion does pass the test, it seems to update the target of the assertion to the provided property, instead resets to the array.
The text was updated successfully, but these errors were encountered: