mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 18:44:16 +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');
|
||
|
});
|