FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: update test-fs-write-file by radelmann · Pull Request #10030 · nodejs/node · GitHub

/ node Public

test: update test-fs-write-file - #10030

Closed
radelmann wants to merge 1 commit into
nodejs:masterfrom
radelmann:FIRST-PR
Closed

test: update test-fs-write-file#10030
radelmann wants to merge 1 commit into
nodejs:masterfrom
radelmann:FIRST-PR

Conversation

radelmann commented Dec 1, 2016
edited
Loading

Copy link
Copy Markdown
Contributor
Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Description of change
  • Changed all instances of var to either const or let.
  • Changed all instances of assert.equal() to assert.strictEqual().
  • Changed all instances of if (e) throw e checks with assert.ifError(e).

nodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
imyller added code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. fs Issues and PRs related to the fs subsystem / file system. labels Dec 1, 2016

imyller commented Dec 1, 2016

Copy link
Copy Markdown
Member

@radelmann May I kindly ask you to format the commit message as described in CONTRIBUTING guidelines.

radelmann force-pushed the FIRST-PR branch 2 times, most recently from 0e81222 to 20941b1 Compare December 1, 2016 18:12
radelmann changed the title Update test/parallel/test-fs-write-file.js to use ES6 features Update test/parallel/test-fs-write-file.js to use ES6 features and assert.strictEqual Dec 1, 2016
radelmann changed the title Update test/parallel/test-fs-write-file.js to use ES6 features and assert.strictEqual Update test/parallel/test-fs-write-file.js to use const/let and assert.strictEqual Dec 1, 2016
radelmann changed the title Update test/parallel/test-fs-write-file.js to use const/let and assert.strictEqual Update test-fs-write-file.js to use const/let and assert.strictEqual Dec 1, 2016
radelmann changed the title Update test-fs-write-file.js to use const/let and assert.strictEqual test: test-fs-write-file.js change to use const/let and assert.strictEqual Dec 1, 2016
radelmann changed the title test: test-fs-write-file.js change to use const/let and assert.strictEqual test: use const/let and assert.strictEqual Dec 1, 2016
radelmann changed the title test: use const/let and assert.strictEqual test: update test-fs-write-file Dec 1, 2016
Comment thread test/parallel/test-fs-write-file.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

While you're here, would you mind replacing all the if (e) throw e; checks with assert.ifError(e);?

Changed all instances of var to either const or let. Changed all
instances of assert.equal() to assert.strictEqual(). Replaced all
error checks with assert.ifError(e).

Trott commented Dec 4, 2016

Copy link
Copy Markdown
Member

Trott 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM if CI is ✅

Trott commented Dec 4, 2016

Copy link
Copy Markdown
Member

Landed in f23dc6e4e597acb4ddae97b307a30c5b277054c0. Thanks for the contribution! 🎉

Trott closed this Dec 4, 2016
Trott pushed a commit to Trott/io.js that referenced this pull request Dec 4, 2016
Replaced all error checks with assert.ifError(e).

PR-URL: nodejs#10030
Reviewed-By: Rich Trott <rtrott@gmail.com>
addaleax pushed a commit that referenced this pull request Dec 5, 2016
Replaced all error checks with assert.ifError(e).

PR-URL: #10030
Reviewed-By: Rich Trott <rtrott@gmail.com>
Fishrock123 mentioned this pull request Dec 5, 2016
2 tasks
addaleax pushed a commit to addaleax/node that referenced this pull request Dec 8, 2016
Replaced all error checks with assert.ifError(e).

PR-URL: nodejs#10030
Reviewed-By: Rich Trott <rtrott@gmail.com>
jmdarling pushed a commit to jmdarling/node that referenced this pull request Dec 8, 2016
Replaced all error checks with assert.ifError(e).

PR-URL: nodejs#10030
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 21, 2016
Replaced all error checks with assert.ifError(e).

PR-URL: #10030
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins mentioned this pull request Dec 21, 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. fs Issues and PRs related to the fs subsystem / file system. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL