Skip to content

Conversation

@BridgeAR
Copy link
Member

This activates a eslint rule to verify that the assert.strictEqual()
arguments are in the correct order.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

This activates a eslint rule to verify that the `assert.strictEqual()` arguments are in the correct order.
@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Nov 30, 2018
@BridgeAR
Copy link
MemberAuthor

@nodejs/testing @nodejs/linting PTAL

@BridgeARBridgeAR requested a review from TrottDecember 2, 2018 21:46
@BridgeAR
Copy link
MemberAuthor

This needs some LGs.

This activates the eslint rule used so far for Code & Learn events to switch to the correct assertion argument order. These are now all in place and we should activate the rule to prevent further mistakes.

@gireeshpunathil
Copy link
Member

@BridgeAR - can you pls confirm the following?

  • the eslint rule on assert.strictEqual was already existing, and you are just enabling it, as we have got almost all of those in
  • the eslint rule is not foolproof, it banks on statically known assumptions on what could be expected and what could be actual
  • the other changes are the few missing (from C&L) test cases where the order is in old style, and you are fixing it in anticipation of linter fail.

pls let me know, thanks.

@BridgeAR
Copy link
MemberAuthor

@gireeshpunathil all are correct.

@addaleax
Copy link
Member

@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 4, 2018
Copy link
Member

@TrottTrott left a comment

Choose a reason for hiding this comment

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

LGTM if lint and CI are green. Thanks!

@Trott
Copy link
Member

Trott commented Dec 4, 2018

Landed in 9e12409

@TrottTrott closed this Dec 4, 2018
Trott pushed a commit to Trott/io.js that referenced this pull request Dec 4, 2018
This activates a eslint rule to verify that the `assert.strictEqual()` arguments are in the correct order. PR-URL: nodejs#24752 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]>
BridgeAR added a commit that referenced this pull request Dec 5, 2018
This activates a eslint rule to verify that the `assert.strictEqual()` arguments are in the correct order. PR-URL: #24752 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@BridgeARBridgeAR mentioned this pull request Dec 5, 2018
4 tasks
refack pushed a commit to refack/node that referenced this pull request Jan 14, 2019
This activates a eslint rule to verify that the `assert.strictEqual()` arguments are in the correct order. PR-URL: nodejs#24752 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@BridgeARBridgeAR deleted the strict-equal-arguments-order branch January 20, 2020 11:43
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@BridgeAR@nodejs-github-bot@gireeshpunathil@addaleax@Trott@BethGriggs