Closed flore77 closed 8 years ago
@jzaefferer ping
Changing to name
makes sense. Can land this immediately.
As for toJSON
, I can't remember. It was introduced here, which doesn't help: https://github.com/js-reporters/js-reporters/commit/1a54b8ef94fa18432e7e10b3381bc7da45a08ab4#diff-0198054f2bb34911d00c2e884ea25e01R60
Let's try to the defineProperties
call and see what happens.
It was introduced here
Yeah, it doesn't help so much, I see that there was also an Error
class that was removed. So is a good idea to create an Assertion class ?
Please review @jzaefferer.
Looks good!
While working on https://github.com/js-reporters/js-reporters/tree/update-spec, I noticed that the test name property is called
testName
, I think it is not necessary to be called this way, if it is already attached to a test object, as also it was not in sync with the suite object who's name property is calledname
. I hope you agree.EDIT: I am thinking to fix multiple things in this pr, that's why the questions below:
Assertion
class ?toJSON
method about defined on the Suite prototype?