camunda-modeler-plugin/main/bpmndt/TestCase.js
/**
   * Enriches the test case with additional path information, regarding start and end node.
   * 
   * @param {object} elementRegistry 
   */
Enriches the test case with additional path information, regarding start and end node.

@param {object} elementRegistry
Enriches the test case with additional path information regarding start and end node . @param { object } elementRegistry
enrich(elementRegistry) {
    const { path } = this;
    if (path.length >= 2) {
      this.start = path[0];
      this.startType = elementRegistry.get(this.start)?.type;
      this.end = path[path.length - 1];
      this.endType = elementRegistry.get(this.end)?.type;
    }
  }
enrich ( elementRegistry ) { const { path } = this ; if ( path . length >= 2 ) { this . start = path [ 0 ] ; this . startType = elementRegistry . get ( this . start ) ?. type ; this . end = path [ path . length - 1 ] ; this . endType = elementRegistry . get ( this . end ) ?. type ; } }
Enriches the test case with additional path information, regarding start and end node.
Enriches the test case with additional path information regarding start and end node .