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