Skip to content

test: writable.write arg type - #29746

Closed
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:test-writable-write-invalid-chunk
Closed

test: writable.write arg type#29746
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:test-writable-write-invalid-chunk

Conversation

@ronag

@ronagronag commented Sep 28, 2019

Copy link
Copy Markdown
Member

Adds some test for passing invalid args to Writable.write

This basically ports some test from Readable.push.

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

@ronag
ronagforce-pushed the test-writable-write-invalid-chunk branch from 65df100 to af366a5CompareSeptember 28, 2019 07:49
Comment threadtest/parallel/test-stream-writable-invalid-chunk.js Outdated
Comment threadtest/parallel/test-stream-writable-invalid-chunk.js Outdated
@ronag

Copy link
Copy Markdown
MemberAuthor

There is a slight discrepancy between null and undefined both inside and outside objectMode which I'd hope someone could clarify the rationale behind.

@ronag
ronagforce-pushed the test-writable-write-invalid-chunk branch from af366a5 to 780f62dCompareSeptember 28, 2019 07:53
@Trott

Trott commented Oct 1, 2019

Copy link
Copy Markdown
Member

@nodejs/testing

@nodejs-github-bot

nodejs-github-bot commented Oct 1, 2019

Copy link
Copy Markdown
Collaborator

@Trott

Trott commented Oct 2, 2019

Copy link
Copy Markdown
Member

@nodejs/streams (particularly on the "is undefined being handled correctly?" question)

@mcollinamcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment threadtest/parallel/test-stream-writable-invalid-chunk.js Outdated
Comment threadtest/parallel/test-stream-writable-invalid-chunk.js Outdated
@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 3, 2019
@Trott

Trott commented Oct 3, 2019

Copy link
Copy Markdown
Member

Landed in 6ea51bc

@TrottTrott closed this Oct 3, 2019
Trott pushed a commit that referenced this pull request Oct 3, 2019
PR-URL: #29746
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BridgeAR pushed a commit that referenced this pull request Oct 9, 2019
PR-URL: #29746
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@BridgeARBridgeAR mentioned this pull request Oct 10, 2019
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@ronag@Trott@nodejs-github-bot@mcollina