-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
forEach() requires 'this' argument #1356
Conversation
Otherwise, this is evaluated to undefined, which causes cryptic errors like: `Cannot read property 'method' of undefined` instead of: `writeFileSync received wrong arguments(...)`
I'm facing this problem when using |
Please add a test to verify. |
I'm not sure about the assertion library ( I confirmed that in the test case |
@ktsn |
@mantoni Yes, the second argument specifies the name of exception however the actual exception name is |
@cjohansen You know about the details in referee better than me. Can you have a look? |
You already have tests, but they all seem to misuse referee.assert.exception() by passing a string as matcher. My understanding of how referee.assert.exception() works is that if you pass a string as second parameter it will take it as a message, not a matcher. See https://github.com/busterjs/referee/blob/master/lib/referee.js#L551 |
One of the tests that should be failing: https://github.com/hrimhari/sinon/blob/master/test/mock-test.js#L513 |
Any news? |
@mantoni bump |
Seems fine. Sorry to keep you waiting @hrimhari. |
Otherwise, this is evaluated to undefined, which causes cryptic errors like:
Cannot read property 'method' of undefined
instead of:
writeFileSync received wrong arguments(...)
Purpose (TL;DR) - mandatory
Background (Problem in detail) - optional
Solution - optional
How to verify - mandatory
npm install