fix issues
This commit is contained in:
12
apps/website/lib/utilities/media.test.ts
Normal file
12
apps/website/lib/utilities/media.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user