Add initial keyboard shortcut support.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user