Skip to content

test: improve test-fs-read-stream.js - #9629

Closed
jennabelle wants to merge 1 commit into
nodejs:masterfrom
jennabelle:make-tests-more-clear
Closed

test: improve test-fs-read-stream.js#9629
jennabelle wants to merge 1 commit into
nodejs:masterfrom
jennabelle:make-tests-more-clear

Conversation

@jennabelle

@jennabellejennabelle commented Nov 16, 2016

Copy link
Copy Markdown
Contributor

tests: refactor to ES6 to strengthen tests

changed var to const, assert.equal() to assert.strictEqual()

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Nov 16, 2016
@Fishrock123

Copy link
Copy Markdown
Contributor

@TrottTrott 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

@bnoordhuis

Copy link
Copy Markdown
Member

@jennabelle Can you make the commit log conform to the house style? CONTRIBUTING.md outlines what it should look like. The first line should at least start with test: and not exceed 50 columns.

@jennabellejennabelle changed the title changed var to const, assert.equal() to assert.strictEqual()test: changed var to const, assert.equal() to assert.strictEqual()Nov 16, 2016
@jennabelle

Copy link
Copy Markdown
ContributorAuthor

@bnoordhuis done, but pls let me know if there is something i missed.

@mscdexmscdex added the fs Issues and PRs related to the fs subsystem / file system. label Nov 16, 2016

@bnoordhuisbnoordhuis 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.

Code changes LGTM but you only updated the title of the pull request, not the commit, and it's still > 50 columns.

@mhdawsonmhdawson 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 provided title is updated to meet commit guidelines.

@jennabellejennabelle changed the title test: changed var to const, assert.equal() to assert.strictEqual()test: change var to const, assert.equal() to assert.strictEqual()Nov 19, 2016
@jennabellejennabelle changed the title test: change var to const, assert.equal() to assert.strictEqual()test: refactor to ES6 to strengthen testsNov 19, 2016
@jennabelle

Copy link
Copy Markdown
ContributorAuthor

@bnoordhuis@mhdawson sorry, i misunderstood earlier- just changed title to < 50 cols and commit log should conform to CONTRIBUTING.md guidelines now- pls let me know what u think

@fhinkel

Copy link
Copy Markdown
Member

You need to change the commit message. Do that locally with git commit --amend and force push. To see if it worked, click at the top on "Commits(1)".

@gibfahn

gibfahn commented Nov 21, 2016

Copy link
Copy Markdown
Member

@jennabelle This is the bit you need to change:
image

Commit message could be something like this (second line optional):

test: improve test-fs-read-stream.js
Changed var to const and assert.equal() to assert.strictEqual()

@jennabelle

Copy link
Copy Markdown
ContributorAuthor

@gibfahn@fhinkel@mhdawson@bnoordhuis Thanks for the direction, done.

screen shot 2016-11-27 at 12 51 07 am

@fhinkel

Copy link
Copy Markdown
Member

LGTM Thanks!

@bnoordhuisbnoordhuis 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 but the commit log title is not the same as the pull request title.

@jennabellejennabelle changed the title test: refactor to ES6 to strengthen teststest: improve test-fs-read-stream.jsNov 28, 2016
@jennabelle

Copy link
Copy Markdown
ContributorAuthor

@bnoordhuis Thx, done.

@mhdawson

Copy link
Copy Markdown
Member

@gibfahngibfahn 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.

CI is green, LGTM

Trott pushed a commit to Trott/io.js that referenced this pull request Dec 7, 2016
var -> const
assert.equal() -> assert.strictEqual()
PR-URL: nodejs#9629
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
@Trott

Trott commented Dec 7, 2016

Copy link
Copy Markdown
Member

Landed in 29b2e88. Thanks for your patience and persistence! 🎉

@TrottTrott closed this Dec 7, 2016
addaleax pushed a commit that referenced this pull request Dec 8, 2016
var -> const
assert.equal() -> assert.strictEqual()
PR-URL: #9629
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
addaleax pushed a commit to addaleax/node that referenced this pull request Dec 8, 2016
var -> const
assert.equal() -> assert.strictEqual()
PR-URL: nodejs#9629
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
@italoacasasitaloacasas mentioned this pull request Dec 15, 2016
MylesBorins pushed a commit that referenced this pull request Dec 21, 2016
var -> const
assert.equal() -> assert.strictEqual()
PR-URL: #9629
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Dec 21, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fsIssues and PRs related to the fs subsystem / file system.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

15 participants

@jennabelle@Fishrock123@bnoordhuis@fhinkel@gibfahn@mhdawson@Trott@jasnell@lpinca@targos@cjihrig@mscdex@MylesBorins@addaleax@nodejs-github-bot