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 { FullscreenAction } from '../../../../src/card-controller/actions/actions/fullscreen';
import { createCardAPI } from '../../../test-utils';
it('should handle fullscreen action', async () => {
const api = createCardAPI();
const action = new FullscreenAction(
{},
{
action: 'fire-dom-event',
frigate_card_action: 'fullscreen',
},
);
await action.execute(api);
expect(api.getFullscreenManager().toggleFullscreen).toBeCalled();
});