-
Notifications
You must be signed in to change notification settings - Fork 82
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
Replace Tap with Mocha as the test framework #201
Conversation
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.
@demurgos this looks great! I hope the conversion was easy 😄 I just had a few comments/suggestions.
pipe( | ||
[gulp.src(filename), task()], | ||
(err) => { | ||
try { |
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.
Thrown errors here don't bubble up to the test?
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 is related to not using miss.concat
in this test: I was just checking for the existence of an error and did not care about the content.
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 have to keep this style to pass the error to done
.
.pipe(task()) | ||
.pipe(expectStream(t)); | ||
}); | ||
return through.obj(assert); |
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 actually needs to be concat
if we plan to keep this abstraction.
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.
My understanding is that this function acts as a stream transformation (pass-through or error). Draining should be handled outside of it. I added concat
calls to the pipes using it.
668d789
to
e13decf
Compare
The tests should remain equivalent. Closes gulp-community#196
I fixed the small issues. I'm looking into getting rid of the |
@phated I update the tests to no longer depend on |
The tests should remain equivalent.
Closes #196