Skip to content

Commit

Permalink
Add test for ../ paths (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage authored and sindresorhus committed Jun 7, 2016
1 parent 98a647a commit 56a20b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,9 @@ test('execa() returns code and failed properties', async t => {
t.is(err.code, 2);
t.true(err.failed);
});

test(`use relative path with '..' chars`, async t => {
const pathViaParentDir = path.join('..', path.basename(__dirname), 'fixtures', 'noop');
const {stdout} = await m(pathViaParentDir, ['foo']);
t.is(stdout, 'foo');
});

0 comments on commit 56a20b1

Please sign in to comment.