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

Fix issue #660: Updated the code to replace var with let, const in strict mode #694

Merged
merged 2 commits into from
Jan 31, 2019

Conversation

yuansheng1989
Copy link
Contributor

  • "var" was replaced with "let" or"const"
  • "use strict" is added to the file

@codecov-io
Copy link

codecov-io commented Jan 29, 2019

Codecov Report

Merging #694 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #694   +/-   ##
=======================================
  Coverage   86.71%   86.71%           
=======================================
  Files          16       16           
  Lines        1746     1746           
=======================================
  Hits         1514     1514           
  Misses        232      232

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...00408f3. Read the comment docs.

@OlenaVyshnevska
Copy link
Contributor

Hey, I think it might be better to use const instead of let for fs and contents variables cause we aren't changing their values


describe('fs.readlink', function() {
beforeEach(util.setup);
afterEach(util.cleanup);

it('should be a function', function() {
var fs = util.fs();
let 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.

You might want to change let to const as we aren't changing "fs" value

expect(fs.readlink).to.be.a('function');
});

it('should return an error if part of the parent destination path does not exist', function(done) {
var fs = util.fs();
let 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.

Same here

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.

Looks great

@humphd humphd merged commit e5481ef into filerjs:master Jan 31, 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