feat: Explicit answer/reject for inbound calls (#2504)
This commit is contained in:
committed by
dermotduffy
parent
b9f09b7c4e
commit
f397596ed1
@@ -0,0 +1,18 @@
|
||||
import { expect, it } from 'vitest';
|
||||
import { CallAnswerAction } from '../../../../src/card-controller/actions/actions/call-answer';
|
||||
import { createCardAPI } from '../../../test-utils';
|
||||
|
||||
it('should handle call_answer action', async () => {
|
||||
const api = createCardAPI();
|
||||
const action = new CallAnswerAction(
|
||||
{},
|
||||
{
|
||||
action: 'fire-dom-event',
|
||||
advanced_camera_card_action: 'call_answer',
|
||||
},
|
||||
);
|
||||
|
||||
await action.execute(api);
|
||||
|
||||
expect(api.getCallManager().answer).toBeCalled();
|
||||
});
|
||||
Reference in New Issue
Block a user