You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
assert: change callTracker.calls and callTracker.callsWith to use an object param instead of positional params #43161
When looking at the intelliSense, it's also confusing because the calls signature is calls(fn, exact = 1) however nether fn or exact are required fields so we have to check every positional argument see
I'm not super-familiar with this API, but the suggestion for calls() to be calls(options) makes sense to me. For callsWith(), I wonder if we want callsWith(args, options).
I'm not super-familiar with this API, but the suggestion for calls() to be calls(options) makes sense to me. For callsWith(), I wonder if we want callsWith(args, options).
I liked it! both calls(options) and callsWith(args, options) 🤩
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
Activity
Trott commentedon May 20, 2022
@nodejs/assert @nodejs/testing
Trott commentedon May 20, 2022
I'm not super-familiar with this API, but the suggestion for
calls()to becalls(options)makes sense to me. ForcallsWith(), I wonder if we wantcallsWith(args, options).ErickWendel commentedon May 21, 2022
I liked it! both calls(options) and callsWith(args, options) 🤩
Should I implement it?
ErickWendel commentedon Jun 6, 2022
Should I? 😬
jasnell commentedon Jun 6, 2022
I'd say go ahead
github-actions commentedon Dec 4, 2022
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.