import { Response } from '../../../../models/bxml/Response';
import { PauseRecording } from '../../../../models/bxml/verbs/PauseRecording';
import { Root } from '../../../../models/bxml/Root';
describe('Response', () => {
const pauseRecording = new PauseRecording();
test('should create a response object', () => {
const response = new Response();
const expected = '';
expect(response).toBeInstanceOf(Response);
expect(response).toBeInstanceOf(Root);
expect(response.toBxml()).toBe(expected);
});
test('should initialize with a single nested verb', () => {
const response = new Response(pauseRecording);
const expected = '';
expect(response.toBxml()).toBe(expected);
});
test('should initialize with multiple nested verbs', () => {
const response = new Response([pauseRecording, pauseRecording]);
const expected = '';
expect(response.toBxml()).toBe(expected);
});
test('should add a single nested verb', () => {
const response = new Response();
response.addVerbs(pauseRecording);
const expected = '';
expect(response.toBxml()).toBe(expected);
});
test('should add multiple nested verbs', () => {
const response = new Response();
response.addVerbs([pauseRecording, pauseRecording]);
const expected = '';
expect(response.toBxml()).toBe(expected);
});
});