13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { getMediaUrl } from './media';
|
|
|
|
describe('media', () => {
|
|
it('should be defined', () => {
|
|
expect(getMediaUrl).toBeDefined();
|
|
});
|
|
|
|
it('should build canonical media paths', () => {
|
|
expect(getMediaUrl('team-logo', 't1')).toBe('/media/teams/t1/logo');
|
|
});
|
|
});
|