-
Notifications
You must be signed in to change notification settings - Fork 17
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
Yana - revisions #18
base: master
Are you sure you want to change the base?
Yana - revisions #18
Conversation
}); | ||
|
||
gulp.task('lint', function() { | ||
return gulp.src(['./**/*.js', '!node_modules/**']).pipe(eslint()).pipe(eslint.format()).pipe(eslint.failAfterError()); |
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 might be more readable if you drop each .pipe onto the next line.
|
||
const reader = require(`${__dirname}/lib/read-files.js`); | ||
|
||
reader.fetchFiles(reader.files, reader.readFiles, reader.logThem); |
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.
Good Job making this callable from index.js.
const fs = require('fs'); | ||
module.exports = exports = {}; | ||
exports.files = [`${__dirname}/../data/one.txt`, `${__dirname}/../data/two.txt`, `${__dirname}/../data/three.txt`]; | ||
|
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.
I like that you put your file paths in an array.
expect(data[1]).to.include('two'); | ||
expect(data[2]).to.include('three'); | ||
done(); | ||
}); |
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.
Good job verifying the order of your file reads.
No description provided.