mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 13:55:42 +03:00
ee27b94b2c
Enable [globals](https://vitest.dev/config/#globals) in vitest, reducing the noise in test files.
6 lines
201 B
JavaScript
6 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');
|
|
});
|