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