import { ConcreteVisitor , ConcreteElementA , ConcreteElementB , } from '../src/visitor' ; test ( 'visitor.ts -> ConcreteElementA' , ( ) => { const visitor = new ConcreteVisitor ( ) ; const elementA = new ConcreteElementA ( ) ; expect ( elementA . accept ( visitor ) ) . toEqual ( 'ConcreteElementA' ) ; } ) ; test ( 'visitor.ts -> ConcreteElementA' , ( ) => { const visitor = new ConcreteVisitor ( ) ; const elementB = new ConcreteElementB ( ) ; expect ( elementB . accept ( visitor ) ) . toEqual ( 'ConcreteElementB' ) ; } ) ;