diff --git a/src/index.test.ts b/src/index.test.ts index a94c4c1..b4831ce 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -17,4 +17,8 @@ describe('safe path', () => { it('accept happy path', () => { expect(safePath('./uplodas', 'foobar')).toBe(true); }); + + it('accept names starting with `..`', () => { + expect(safePath('./uplodas', '..foobar')).toBe(true); + }); });