Files
advanced-camera-card/tests/card-controller/actions/actions/none.test.ts
T
Dermot Duffy 75ae7720d3 fix: Confirmations should apply to all actions (#1959)
This also refactors how generic HA actions are handled, and improves
typing of actions.


[skip ci]
2025-03-15 14:32:48 -07:00

18 lines
401 B
TypeScript

import { it } from 'vitest';
import { NoneAction } from '../../../../src/card-controller/actions/actions/none';
import { createCardAPI } from '../../../test-utils';
it('should handle none action', async () => {
const api = createCardAPI();
const action = new NoneAction(
{},
{
action: 'none' as const,
},
);
await action.execute(api);
// No observable side effects.
});