Skip to content
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

Issue #715 Update fs.lstat.spec.js to have proper const and let instead of var and added 'use strict' #727

Merged
merged 7 commits into from
Feb 12, 2019

Conversation

hoaianhkhang
Copy link
Contributor

@hoaianhkhang hoaianhkhang commented Jan 30, 2019

I edit the code to change some let into const and tested it again

@codecov-io
Copy link

codecov-io commented Jan 30, 2019

Codecov Report

Merging #727 into master will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #727      +/-   ##
==========================================
- Coverage   86.71%   86.63%   -0.08%     
==========================================
  Files          16       16              
  Lines        1746     1736      -10     
==========================================
- Hits         1514     1504      -10     
  Misses        232      232
Impacted Files Coverage Δ
src/filesystem/interface.js 93.29% <0%> (-0.39%) ⬇️
src/stats.js 100% <0%> (ø) ⬆️
src/fs-watcher.js 92.3% <0%> (ø) ⬆️
src/shell/environment.js 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26b47ee...fbdd179. Read the comment docs.

@pbrahmbhatt3
Copy link
Contributor

Hi @hoaianhkhang, good work! I think you can make your pull request better by giving some desciption of the changes you have made. if you click on the 3 horizontal dots you will be given an option to edit your description and you can describe your changes.
untitled

Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

This looks good.

You can actually change all the let fs = util.fs(); and let fsPromises = util.fs().promises; to use const vs. let, since the variable will never change after being declared. Please do those changes and let me know when it's updated, so I can re-review.

@hoaianhkhang
Copy link
Contributor Author

I have changed the file, can you check it again please?

Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

Can you revert the blank line changes you made?

@@ -13,7 +13,6 @@ describe('fs.lstat', function() {

it('should return an error if path does not exist', function(done) {
const fs = util.fs();

Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove all these blank lines? It's normally a bad idea to touch lines that aren't really part of this fix. The reason it's generally avoided is that it will alter the history of these lines in git, making them look like they were changed in this PR, but really they weren't.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have changed the file again with the space

@humphd humphd merged commit e6f8ef2 into filerjs:master Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants