gitea/web_src/js/utils/url.test.js

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');
});