mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 17:25:35 +03:00
21 lines
635 B
TypeScript
21 lines
635 B
TypeScript
|
|
import { assetUtils } from './asset-utils';
|
||
|
|
|
||
|
|
describe('Asset Utilities', () => {
|
||
|
|
describe('isWebPlayable', () => {
|
||
|
|
it('Check that it returns true with mimetype webm', () => {
|
||
|
|
const result = assetUtils.isWebPlayable('video/webm');
|
||
|
|
expect(result).toBeTruthy();
|
||
|
|
});
|
||
|
|
|
||
|
|
it('Check that returns true with mimetype mp4', () => {
|
||
|
|
const result = assetUtils.isWebPlayable('video/mp4');
|
||
|
|
expect(result).toBeTruthy();
|
||
|
|
});
|
||
|
|
|
||
|
|
it('Check that returns false with mimetype quicktime', () => {
|
||
|
|
const result = assetUtils.isWebPlayable('video/quicktime');
|
||
|
|
expect(result).toBeFalsy();
|
||
|
|
});
|
||
|
|
});
|
||
|
|
});
|