Creating new sketch calling sketch fns with dumby default values (#67)

This commit is contained in:
Kurt Hutten
2023-03-17 15:53:20 +11:00
committed by GitHub
parent c11e7e7fd3
commit f7c78db92b
3 changed files with 109 additions and 17 deletions

View File

@ -111,9 +111,9 @@ describe('Testing addSketchTo', () => {
'yz'
)
const str = recast(result.modifiedAst)
expect(str).toBe(`const part001 = startSketchAt([0, 0])
expect(str).toBe(`const part001 = startSketchAt('default')
|> ry(90, %)
|> lineTo([1, 1], %)
|> line('default', %)
show(part001)`)
})
})