mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 10:49:35 +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');
|
||
|
});
|