Do not require all title popup options be specified.
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
customSchema,
|
||||
dimensionsConfigSchema,
|
||||
frigateCardCustomActionsBaseSchema,
|
||||
frigateCardPTZSchema
|
||||
frigateCardPTZSchema,
|
||||
} from '../../src/config/types';
|
||||
import { createConfig } from '../test-utils';
|
||||
|
||||
@@ -419,3 +419,19 @@ describe('should handle custom frigate elements', () => {
|
||||
expect(result.success).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
// https://github.com/dermotduffy/frigate-hass-card/issues/1280
|
||||
it('should not require title controls to specify all options', () => {
|
||||
expect(
|
||||
createConfig({
|
||||
cameras: [],
|
||||
live: {
|
||||
controls: {
|
||||
title: {
|
||||
mode: 'popup-top-left',
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
).toBeTruthy();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user