1 parent
03d9df8282
commit
e6b93d53e9
8 files changed
+59
-66
No files matched your search
@@ -21,6 +21,14 @@ describe('createMediaNotification', () => {
|
||||
expect(notification.heading?.icon).toBe('mdi:alert-circle');
|
||||
});
|
||||
|
||||
it('should omit the heading icon when it is null', () => {
|
||||
const notification = createMediaNotification({
|
||||
icon: null,
|
||||
title: 'Awaiting live view',
|
||||
});
|
||||
expect(notification.heading?.icon).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should append the camera title to the heading', () => {
|
||||
const notification = createMediaNotification({
|
||||
icon: 'mdi:alert-circle',
|
||||
|
||||
Reference in new issue
Block a user