import { Parser } from '../../src';
import { mixedSimpleRecords } from '../mocks/ui';

describe('Parser', () => {
  it('Should safely handle not finding a visitor', () => {
    const parser = new Parser();
    parser.visitors = [];
    expect(() => parser.setText(mixedSimpleRecords).parse()).not.toThrow();
  });
});
