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 for message not being displayed in assert methods #85

Closed
wants to merge 4 commits into from
Closed

Fix for message not being displayed in assert methods #85

wants to merge 4 commits into from

Conversation

ulrikhindoe
Copy link

When given as an argument the message should be displayed when the assertion fails like is does when
chai is being used without chai-immutable.

It has been fixed for these methods:
assert.equal(actual, expected, message)
assert.notEqual(actual, expected, message)
assert.sizeOf(collection, expected, message)

@ulrikhindoe ulrikhindoe changed the title Fix for message not being display in assert methods Fix for message not being displayed in assert methods Nov 18, 2017
@astorije
Copy link
Owner

Hey @ulrikhindoe! Awesome stuff, thanks 😊

Just FYI, this was not a bug, I just never implemented that part. I'm curious I never (or anyone else really) opened an issue for it.
I'll get to it soon, I'm clearing things up to give some love to chai-immutable, and it really needs some!

Copy link
Owner

@astorije astorije left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ulrikhindoe, would you mind adding this for other methods to, like the core Chai?

@@ -689,14 +689,14 @@
* @api public
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add the doc for these additions please?

Similarly to this, after * @param {Collection} expected, that would be * @param {String} message _optional_

@astorije
Copy link
Owner

Closing this as it's now outdated and needs a little work. I opened #207 to keep track of the feature request, if anyone wants to help 🙏

@astorije astorije closed this Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants