fix: ensure job id is a clean string
This commit is contained in:
10
packages/common/src/slug.test.ts
Normal file
10
packages/common/src/slug.test.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { slug } from './slug';
|
||||
|
||||
describe('slug', () => {
|
||||
it('should remove pipes from string', () => {
|
||||
expect(slug('Hello || World, | Test å å ä ä')).toBe(
|
||||
'hello-world-test-a-a-a-a',
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user