feat: Make cameras optional (#2343)

This commit is contained in:
Dermot Duffy
2026-02-13 20:21:05 -08:00
committed by GitHub
parent 21f9469784
commit 93f1f08e51
61 changed files with 1312 additions and 557 deletions
+12
View File
@@ -123,4 +123,16 @@ describe('generateScreenshotTitle', () => {
expect(generateScreenshotFilename(view)).toBe('media_camera-1.jpg');
});
it('should get title for live view without camera', () => {
expect(generateScreenshotFilename(createView({ view: 'live', camera: null }))).toBe(
'live_2023-06-13-21-54-01.jpg',
);
});
it('should get title for viewer view without camera', () => {
expect(generateScreenshotFilename(createView({ view: 'media', camera: null }))).toBe(
'media.jpg',
);
});
});