Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

shvaikalesh
Copy link
Contributor

Closes #1034
Related to chaijs/assertion-error#9

Thing.prototype = 1337;
t.should.be.an.instanceof(Thing);
}, expectedError, true);
}, 'The instanceof assertion needs a constructor but function was given.', true);
Copy link
Contributor Author

@shvaikalesh shvaikalesh Sep 6, 2017

Choose a reason for hiding this comment

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

I think the message is a bit misleading: TypeError is thrown because rhs.prototype is primitive, type of rhs is OK.

Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

All LGTM 👍 awesome work @shvaikalesh

@keithamus keithamus merged commit dbeae08 into chaijs:master Sep 6, 2017
@astorije
Copy link
Member

astorije commented Sep 6, 2017

Should we add "use strict" at the top of our files then?

@keithamus
Copy link
Member

Not yet - we'll do a push for linting very soon though I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants