Update code in rectangle test

This commit is contained in:
Adam Chalmers
2025-02-02 09:35:34 -06:00
parent 677bda7cef
commit e23f3f5f53

View File

@ -29,8 +29,8 @@ describe('library rectangleTool helper functions', () => {
segAng(rectangleSegmentA001),
-segLen(rectangleSegmentA001)
], %, $rectangleSegmentC001)
|> lineTo([profileStartX(%), profileStartY(%)], %)
|> close(%)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
`
// Create ast
const _ast = assertParse(sourceCode)
@ -82,8 +82,8 @@ segAng(rectangleSegmentA001),
segAng(rectangleSegmentA001),
-segLen(rectangleSegmentA001)
], %, $rectangleSegmentC001)
|> lineTo([profileStartX(%), profileStartY(%)], %)
|> close(%)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
`
const recasted = recast(ast)
expect(recasted).toEqual(expectedSourceCode)