-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
(Don't Merge) Test refactor #194
Conversation
LGTM |
LGTM |
file.base = basePath; | ||
// Ensure the base always ends with a separator | ||
// TODO: add a test for this | ||
file.base = path.normalize(basePath + path.sep); |
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.
since path.normalize()
will fix 'foo//'
to foo/
(or backslashes if windows), to be safe I would consider doing basePath + '/' + path.sep
(edited: nvm I misread path.sep
to be some other path variable. I'm pretty sure that will always normalize out to have a path at the end)
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 actually think this needs to be pushed down into vinyl but I will do that separately from this PR
this looks great |
@phated I sent a PR to this branch with an utterly pedantic change. So yeah, this looks awesome 👍 |
Opening this for review. Once I have some feedback, I'll push it to master to keep the 2 commits separate.
cc'ing anyone that might be remotely familiar since there's a lot of changes.
@contra @terinjokes @erikkemperman @jonschlinkert