gulpjs / glob-stream

Readable streamx interface over anymatch.
MIT License
178 stars 53 forks source link

Need test for #59 #60

Closed phated closed 7 years ago

phated commented 8 years ago

The change introduced in https://github.com/gulpjs/glob-stream/commit/6ef29b6b41ae3da054ef17d310aa55c07f3748d3 should get a regression test.

phated commented 8 years ago

@danivek can you help with this?

phated commented 8 years ago

@doowb do you have any thoughts on implementing a regression test for this with your recent changes?

doowb commented 8 years ago

@phated I just noticed this...

From looking at the tests, most of them check file.base which uses the basePath that's calculated by the changes that I made. All of the tests add path.sep to the expected directory, so I think this case should be covered. Other than checking file.base, I'm not sure if there's another way to target the basePath variable that's created inside the function.

The other option is to move most of those utility functions into a utils.js file that can be individually unit tested. This may provide more coverage and reduce regression bugs.

phated commented 7 years ago

I believe this is no longer valid with the changes in c64b34f9dd679157129b2748c438ac23cfb45ea8