mirror of
https://github.com/go-gitea/gitea
synced 2024-11-05 13:49:10 +01:00
8 lines
238 B
JavaScript
8 lines
238 B
JavaScript
|
import {expect, test} from 'vitest';
|
||
|
import {pathEscapeSegments} from './url.js';
|
||
|
|
||
|
test('pathEscapeSegments', () => {
|
||
|
expect(pathEscapeSegments('a/b/c')).toEqual('a/b/c');
|
||
|
expect(pathEscapeSegments('a/b/ c')).toEqual('a/b/%20c');
|
||
|
});
|