GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — test_runner: add `SuiteContext` class by debadree25 · Pull Request #45687 · nodejs/node Conversation
Contributor
added SuiteContext class to replace object literal Fixes: #45641
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
added SuiteContext class to replace object literal Fixes: nodejs#45641 Refs: nodejs#45641 (comment)
MoLow
approved these changes
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. SuiteContext class
aduh95
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why, though?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
To bring consistency with the docs, the docs mention the existence of SuiteContext class and it being the first argument passed to the functions but the actual class didn't exist and the arg list was empty, hence simply added the class here |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Wouldn't fixing the docs be a more reasonable approach? To be clear, I'm not blocking this PR, but I'm skeptical that having a class is what makes the most sense here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I guess the only reason I can give is that it was faster to make the change in the code than having to remove all refs in the doc as refed #45641 (comment) here too 😅😅 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
would be happy to go the doc approach too if you think that would be best practice! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think @aduh95's point is valid. Is this class necessary or useful? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think it's useful for matching the other context objects and the existing documentation. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
FWIW I do think its better to change the code than the documentation, since this name dose help understanding the responsibility of this object |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in 8541b3a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
added SuiteContext class to replace object literal Fixes: #45641 Refs: #45641 (comment) PR-URL: #45687 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
|
Will this be merged to 18.x branch? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
added SuiteContext class to replace object literal Fixes: #45641 Refs: #45641 (comment) PR-URL: #45687 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
added SuiteContext class to replace object literal Fixes: #45641 Refs: #45641 (comment) PR-URL: #45687 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
added SuiteContext class to replace object literal Fixes: #45641 Refs: #45641 (comment) PR-URL: #45687 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[node:test] IncorrectSuiteContext description
There was an error while loading. Please reload this page.