Running the tests doesn't check the result of the worker based pdf processing code. This should be the case.

xNew =
          affectedBoundary.index > boundary.index
            ? affectedBoundary.x1New
            : boundary.x1;
      } else if (affectedBoundary.x2New === undefined) {
        
        
        xNew = (affectedBoundary.x2 + boundary.x1) / 2;
      } else {
        
        xNew = affectedBoundary.x2New;
      }
      if (xNew > maxXNew) {
        maxXNew = xNew;
      }
    }
    
    boundary.x1New = maxXNew;
    
    for (q = i; q <= j; q++) {
      horizonPart = horizon[q];
      affectedBoundary = horizonPart.boundary;
      if (affectedBoundary.x2New === undefined) {
        
        if (affectedBoundary.x2 > boundary.x1) {
          
          
          if (affectedBoundary.index > boundary.index) {
            affectedBoundary.x2New = affectedBoundary.x2;
          }