@@ -542,7 +542,7 @@ profile002 = startProfile(sketch002, at = [0, 0])
542542 kclManagerInThisFile
543543 )
544544 const sectional = true
545- const relativeTo = 'sketchPlane '
545+ const relativeTo = 'SKETCH_PLANE '
546546 const result = addSweep ( { ast, sketches, path, sectional, relativeTo } )
547547 if ( err ( result ) ) throw result
548548 await runNewAstAndCheckForSweep ( result . modifiedAst , rustContextInThisFile )
@@ -552,7 +552,7 @@ profile002 = startProfile(sketch002, at = [0, 0])
552552 profile001,
553553 path = profile002,
554554 sectional = true,
555- relativeTo = "sketchPlane" ,
555+ relativeTo = sweep::SKETCH_PLANE ,
556556)` )
557557 } )
558558
@@ -562,15 +562,15 @@ sweep001 = sweep(
562562 profile001,
563563 path = profile002,
564564 sectional = true,
565- relativeTo = 'sketchPlane' ,
565+ relativeTo = sweep::SKETCH_PLANE ,
566566)`
567567 const { ast, sketches, path } = await getAstAndSketchesForSweep (
568568 circleAndLineCodeWithSweep ,
569569 instanceInThisFile ,
570570 kclManagerInThisFile
571571 )
572572 const sectional = false
573- const relativeTo = 'trajectoryCurve '
573+ const relativeTo = 'TRAJECTORY '
574574 const nodeToEdit = createPathToNodeForLastVariable ( ast )
575575 const result = addSweep ( {
576576 ast,
@@ -585,7 +585,7 @@ sweep001 = sweep(
585585 const newCode = recast ( result . modifiedAst , instanceInThisFile )
586586 expect ( newCode ) . toContain ( circleAndLineCode )
587587 expect ( newCode ) . toContain (
588- `sweep001 = sweep(profile001, path = profile002, relativeTo = "trajectoryCurve" )`
588+ `sweep001 = sweep(profile001, path = profile002, relativeTo = sweep::TRAJECTORY )`
589589 )
590590 } )
591591
0 commit comments