0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-06-08 13:39:09 +02:00
gitea/web_src/js/utils/url.test.js
Giteabot d74fba8175
Use vitest globals (#27102) (#27311)
Backport #27102 by @silverwind

Enable [globals](https://vitest.dev/config/#globals) in vitest, reducing
the noise in test files.

Co-authored-by: silverwind <me@silverwind.io>
2023-09-27 16:10:08 +02:00

7 lines
201 B
JavaScript

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