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:
committed by
Nick Cameron
parent
a69ccf960f
commit
70766cef69
@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user