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

Add test for finding nested dir at path.basename(cwd) #1

Merged
merged 2 commits into from Apr 24, 2019
Merged

Add test for finding nested dir at path.basename(cwd) #1

merged 2 commits into from Apr 24, 2019

Conversation

coreyfarrell
Copy link

@sholladay this adds passing tests to your branch for edge cases including searching for an absolute path (existing and not). I'm posting this PR to your fork to avoid conflicting with sindresorhus#28.

CC @sindresorhus

test.js Outdated Show resolved Hide resolved
coreyfarrell and others added 2 commits April 23, 2019 16:40
* Return absolute path if found regardless of cwd
* Return undefined for non-existant absolute path
* Find nested path in basename of cwd
@sholladay sholladay merged commit 94fafd1 into sholladay:master Apr 24, 2019
@sholladay
Copy link
Owner

Thanks, tests are always appreciated. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants