committed by
dermotduffy
parent
591f466b92
commit
31d0c9322f
@@ -74,17 +74,6 @@ describe('FrigateEventViewMedia', () => {
|
||||
expect(media.inProgress()).toBe(false);
|
||||
});
|
||||
|
||||
it('should get video content type as HLS', () => {
|
||||
const media = new FrigateEventViewMedia(
|
||||
ViewMediaType.Clip,
|
||||
'camera',
|
||||
createFrigateEvent(),
|
||||
'content_id',
|
||||
'thumbnail',
|
||||
);
|
||||
expect(media.getVideoContentType()).toBe('hls');
|
||||
});
|
||||
|
||||
it('should get ID', () => {
|
||||
const event = createFrigateEvent({
|
||||
id: 'test-event-id',
|
||||
@@ -384,18 +373,6 @@ describe('FrigateRecordingViewMedia', () => {
|
||||
expect(media.inProgress()).toBe(false);
|
||||
});
|
||||
|
||||
it('should get video content type as HLS', () => {
|
||||
const media = new FrigateRecordingViewMedia(
|
||||
ViewMediaType.Recording,
|
||||
'camera',
|
||||
createFrigateRecording(),
|
||||
'id',
|
||||
'content_id',
|
||||
'title',
|
||||
);
|
||||
expect(media.getVideoContentType()).toBe('hls');
|
||||
});
|
||||
|
||||
it('should get content ID', () => {
|
||||
const media = new FrigateRecordingViewMedia(
|
||||
ViewMediaType.Recording,
|
||||
@@ -476,16 +453,6 @@ describe('FrigateReviewViewMedia', () => {
|
||||
expect(media.inProgress()).toBe(false);
|
||||
});
|
||||
|
||||
it('should get video content type as HLS', () => {
|
||||
const media = new FrigateReviewViewMedia(
|
||||
'camera',
|
||||
createFrigateReview(),
|
||||
'content_id',
|
||||
'thumb',
|
||||
);
|
||||
expect(media.getVideoContentType()).toBe('hls');
|
||||
});
|
||||
|
||||
it('should get content ID', () => {
|
||||
const media = new FrigateReviewViewMedia(
|
||||
'camera',
|
||||
|
||||
@@ -1017,7 +1017,6 @@ describe('ReolinkCameraManagerEngine', () => {
|
||||
expect(media?.[0].getCameraID()).toBe('office');
|
||||
expect(media?.[0].getStartTime()).toEqual(new Date('2024-11-04T21:00:00'));
|
||||
expect(media?.[0].getEndTime()).toEqual(new Date('2024-11-04T22:00:00'));
|
||||
expect(media?.[0].getVideoContentType()).toBe('mp4');
|
||||
expect(media?.[0].getID()).toBe('office/2024-11-04 21:00:00');
|
||||
expect(media?.[0].getContentID()).toBe(
|
||||
'media-source://reolink/FILE|01J8XHYTNH77WE3C654K03KX1F|0|sub|Rec_20241105_052353_211_S.mp4',
|
||||
|
||||
Reference in New Issue
Block a user