Add initial keyboard shortcut support.

This commit is contained in:
Dermot Duffy
2024-06-05 21:44:17 -07:00
parent 904f6d8142
commit 7ab545738d
186 changed files with 9564 additions and 3658 deletions
@@ -0,0 +1,18 @@
import { expect, it } from 'vitest';
import { createCardAPI } from '../../../test-utils';
import { MicrophoneUnmuteAction } from '../../../../src/card-controller/actions/actions/microphone-unmute';
it('should handle microphone_unmute action', async () => {
const api = createCardAPI();
const action = new MicrophoneUnmuteAction(
{},
{
action: 'fire-dom-event',
frigate_card_action: 'microphone_unmute',
},
);
await action.execute(api);
expect(api.getMicrophoneManager().unmute).toBeCalled();
});