mirror of
https://github.com/go-gitea/gitea
synced 2024-11-08 19:24:25 +00: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');
|
||
|
});
|