-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nina 2016 code-n-learn, issue: use assert.Equal() #9977
nina 2016 code-n-learn, issue: use assert.Equal() #9977
Conversation
@ianwhitedeveloper May I kindly ask you to format the commit message as described in CONTRIBUTING guidelines. |
dbd6e32
to
76f28a8
Compare
Alrighty just pushed an amended commit. Thanks again. |
@ianwhitedeveloper Looks great! Thank you 👍 |
@ianwhitedeveloper FYI, your commit has the name git commit --amend --no-edit --author="Ian White <ian.white.developer@gmail.com>" And then update your branch (which will update this PR). |
@@ -34,7 +34,7 @@ fs.appendFileSync(filename2, data); | |||
|
|||
var fileData2 = fs.readFileSync(filename2); | |||
|
|||
assert.equal(Buffer.byteLength(data) + currentFileData.length, | |||
assert.strictEqual(Buffer.byteLength(data) + currentFileData.length, | |||
fileData2.length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be lined up now.
} | ||
|
||
var fileData4 = fs.readFileSync(filename4); | ||
|
||
assert.equal(Buffer.byteLength('' + num) + currentFileData.length, | ||
assert.strictEqual(Buffer.byteLength('' + num) + currentFileData.length, | ||
fileData4.length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
@@ -76,7 +76,7 @@ fs.closeSync(filename5fd); | |||
|
|||
var fileData5 = fs.readFileSync(filename5); | |||
|
|||
assert.equal(Buffer.byteLength(data) + currentFileData.length, | |||
assert.strictEqual(Buffer.byteLength(data) + currentFileData.length, | |||
fileData5.length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
Alrighty @cjihrig I'll make those updates ASAP. Having problems with my computer so I'm going to need to clear a bunch of space to get the project up and running, but it's on my radar! thanks for taking a look. |
Ok @cjihrig I made the changes. Hopefully I didn't misunderstand the problem! Thanks again! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Code changes LGTM.
Change instances of `asset.equal` to `assert.strictEqual`. PR-URL: nodejs#9977 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Landed in 62f4b77. Thanks for the contribution! 🎉 |
Change instances of `asset.equal` to `assert.strictEqual`. PR-URL: #9977 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Change instances of `asset.equal` to `assert.strictEqual`. PR-URL: nodejs#9977 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Change instances of `asset.equal` to `assert.strictEqual`. PR-URL: nodejs#9977 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Change instances of `asset.equal` to `assert.strictEqual`. PR-URL: #9977 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
Test
Description of change
test: change
assert.equal
toassert.strictEqual
the following lines have been updated: