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

(Don't Merge) Test refactor #194

Merged
merged 3 commits into from
Jul 23, 2016
Merged

(Don't Merge) Test refactor #194

merged 3 commits into from
Jul 23, 2016

Conversation

phated
Copy link
Member

@phated phated commented Jul 22, 2016

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

@yocontra
Copy link
Member

LGTM

@terinjokes
Copy link

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);
Copy link

@jonschlinkert jonschlinkert Jul 23, 2016

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)

Copy link
Member Author

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

@jonschlinkert
Copy link

this looks great

@erikkemperman
Copy link
Member

@phated I sent a PR to this branch with an utterly pedantic change. So yeah, this looks awesome 👍

@phated phated merged commit b4b1049 into master Jul 23, 2016
@phated phated deleted the test-refactor branch July 23, 2016 20:55
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.

5 participants