Skip to content

Conversation

@radelmann
Copy link
Contributor

@radelmannradelmann commented Dec 1, 2016

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-botnodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
@imyllerimyller 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
Copy link
Member

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

@radelmannradelmannforce-pushed the FIRST-PR branch 2 times, most recently from 0e81222 to 20941b1CompareDecember 1, 2016 18:12
@radelmannradelmann changed the title Update test/parallel/test-fs-write-file.js to use ES6 featuresUpdate test/parallel/test-fs-write-file.js to use ES6 features and assert.strictEqualDec 1, 2016
@radelmannradelmann changed the title Update test/parallel/test-fs-write-file.js to use ES6 features and assert.strictEqualUpdate test/parallel/test-fs-write-file.js to use const/let and assert.strictEqualDec 1, 2016
@radelmannradelmann changed the title Update test/parallel/test-fs-write-file.js to use const/let and assert.strictEqualUpdate test-fs-write-file.js to use const/let and assert.strictEqualDec 1, 2016
@radelmannradelmann changed the title Update test-fs-write-file.js to use const/let and assert.strictEqualtest: test-fs-write-file.js change to use const/let and assert.strictEqualDec 1, 2016
@radelmannradelmann changed the title test: test-fs-write-file.js change to use const/let and assert.strictEqualtest: use const/let and assert.strictEqualDec 1, 2016
@radelmannradelmann changed the title test: use const/let and assert.strictEqualtest: update test-fs-write-fileDec 1, 2016
Copy link
Contributor

Choose a reason for hiding this comment

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

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
Copy link
Member

Trott commented Dec 4, 2016

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 CI is ✅

@Trott
Copy link
Member

Trott commented Dec 4, 2016

Landed in f23dc6e4e597acb4ddae97b307a30c5b277054c0. Thanks for the contribution! 🎉

@TrottTrott 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 <[email protected]>
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 <[email protected]>
@Fishrock123Fishrock123 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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
@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

code-and-learnIssues related to the Code-and-Learn events and PRs submitted during the events.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.

7 participants

@radelmann@imyller@Trott@cjihrig@MylesBorins@addaleax@nodejs-github-bot