mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
12 lines
420 B
TypeScript
12 lines
420 B
TypeScript
import {sanitizeQuerySelector} from 'sentry/utils/sanitizeQuerySelector';
|
|
|
|
describe('sanitizeQuerySelector', function () {
|
|
it('replaces all spaces with a hyphen', function () {
|
|
expect(sanitizeQuerySelector('foo bar baz bar foo')).toBe('foo-bar-baz-bar-foo');
|
|
});
|
|
|
|
it('replaces colons with a hyphen', function () {
|
|
expect(sanitizeQuerySelector('foo:bar:baz bar foo')).toBe('foo-bar-baz-bar-foo');
|
|
});
|
|
});
|