Remove only trailing slashes (#3183)
This commit is contained in:
parent
862e717ff7
commit
1ae217d74d
1 changed files with 7 additions and 1 deletions
|
|
@ -70,6 +70,12 @@ describe('Path Utilities', () => {
|
|||
.toBe('/home/user/some path');
|
||||
expect(normalizePath('"/usr/local/some app/"'))
|
||||
.toBe('/usr/local/some app');
|
||||
expect(normalizePath('/usr/local//bin/app///'))
|
||||
.toBe('/usr/local/bin/app');
|
||||
expect(normalizePath('/'))
|
||||
.toBe('/');
|
||||
expect(normalizePath('///'))
|
||||
.toBe('/');
|
||||
});
|
||||
|
||||
it('removes surrounding quotes', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue