10 lines
300 B
TypeScript
10 lines
300 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import { trackShareUrl } from './share';
|
|
|
|
describe('trackShareUrl', () => {
|
|
it('builds a page URL without stream credentials', () => {
|
|
expect(trackShareUrl('https://music.example', 'ab/cd')).toBe('https://music.example/track/ab%2Fcd');
|
|
});
|
|
});
|