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

tmp fix for exercise 9 #98

Merged
merged 3 commits into from
Sep 14, 2016
Merged

tmp fix for exercise 9 #98

merged 3 commits into from
Sep 14, 2016

Conversation

adekbadek
Copy link
Contributor

@adekbadek adekbadek commented Sep 14, 2016

temporary fix for issue #92 (and #81), a legit fix would have to re-implement comparestdout.js, but just to compare first two lines

Copy link
Collaborator

@TimothyGu TimothyGu left a comment

Choose a reason for hiding this comment

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

Other than the two comments, the change looks good to me.

, split = require('split')
, chalk = require('chalk')
, tuple = require('tuple-stream')
, through2 = require('through2')
Copy link
Collaborator

Choose a reason for hiding this comment

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

These dependencies are not added to packages.json.

exercise = comparestdout(exercise)
exercise.addProcessor(function (mode, callback) {
let outputStream = through2.obj(function (chunk) {
const result = chunk[0] === chunk[1]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't use ES2015 let and const. var would do.

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 changed that, but what's the reason?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We still support old Node.js I think

@TimothyGu TimothyGu merged commit d4ed031 into stevekane:master Sep 14, 2016
@TimothyGu
Copy link
Collaborator

Thank you!

@adekbadek adekbadek deleted the ex9-stdout-fix branch September 14, 2016 21:10
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.

2 participants