Fix tests

Assume the line() kwargs calls are being generated in a |>, so they should
not set an unlabeled arg (it will default to % which it was previously setting)
This commit is contained in:
Adam Chalmers
2025-01-14 14:03:01 -06:00
committed by Nick Cameron
parent a69ccf960f
commit 70766cef69
2 changed files with 4 additions and 4 deletions

View File

@ -550,7 +550,7 @@ part001 = startSketchOn('XY')
['// base selection', '// xRelative'],
'setVertDistance'
)
expect(expectedCode).toContain(`|> line(%, endAbsolute = [
expect(expectedCode).toContain(`|> line(endAbsolute = [
lastSegX(%) + myVar,
segEndY(seg01) + 2.93
]) // xRelative`)
@ -561,7 +561,7 @@ part001 = startSketchOn('XY')
['// base selection', '// yRelative'],
'setHorzDistance'
)
expect(expectedCode).toContain(`|> line(%, endAbsolute = [
expect(expectedCode).toContain(`|> line(endAbsolute = [
segEndX(seg01) + 2.6,
lastSegY(%) + myVar
]) // yRelative`)