Skip to content

test: replace assert.throws w/ common.expectsError - #23454

Closed
aeisenberg wants to merge 2 commits into
nodejs:masterfrom
aeisenberg:test-buffer-alloc-assertions
Closed

test: replace assert.throws w/ common.expectsError#23454
aeisenberg wants to merge 2 commits into
nodejs:masterfrom
aeisenberg:test-buffer-alloc-assertions

Conversation

@aeisenberg

Copy link
Copy Markdown
Contributor

Converts RangeError assertions to use common.expectsError and includes
an assertion for the error code.

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

Converts RangeError assertions to use common.expectsError and includes
an assertion for the error code.
@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Oct 12, 2018
@gireeshpunathilgireeshpunathil added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Oct 12, 2018
@aeisenberg

aeisenberg commented Oct 12, 2018 via email

Copy link
Copy Markdown
ContributorAuthor

Comment threadtest/parallel/test-buffer-alloc.js Outdated
Trims some lines of code and makes the tests easier to read.
@Trott

Copy link
Copy Markdown
Member

@Trott

Copy link
Copy Markdown
Member

Collaborators, please 👍 here to approve fast-tracking.

@TrottTrott added fast-track PRs that do not need to wait for 48 hours to land. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Oct 13, 2018
Trott pushed a commit to Trott/io.js that referenced this pull request Oct 13, 2018
Converts RangeError assertions to use common.expectsError and includes
an assertion for the error code.
PR-URL: nodejs#23454
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
@Trott

Copy link
Copy Markdown
Member

Landed in 0005846.

Thanks for the contribution! 🎉

(If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.)

@TrottTrott closed this Oct 13, 2018
jasnell pushed a commit that referenced this pull request Oct 17, 2018
Converts RangeError assertions to use common.expectsError and includes
an assertion for the error code.
PR-URL: #23454
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
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.code-and-learnIssues related to the Code-and-Learn events and PRs submitted during the events.fast-trackPRs that do not need to wait for 48 hours to land.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@aeisenberg@Trott@jasnell@thefourtheye@addaleax@cjihrig@gireeshpunathil@trivikr@nodejs-github-bot