Remove deprecated syntax (#6561)

* Remove deprecated syntax

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* fix one test

* fix sketch on revolved face test

* fix test: empty-scene default-planes act as expected

* fix up more tests

* another fix

* remove another const

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch>
This commit is contained in:
Nick Cameron
2025-04-30 13:12:40 +12:00
committed by GitHub
parent 29b8a442c2
commit 0ea0d1703e
127 changed files with 2092 additions and 2359 deletions

View File

@ -309,16 +309,16 @@ describe('Testing giveSketchFnCallTag', () => {
})
describe('Testing moveValueIntoNewVariable', () => {
const fn = (fnName: string) => `fn ${fnName} = (x) => {
const fn = (fnName: string) => `fn ${fnName} (x) {
return x
}
`
const code = `${fn('def')}${fn('jkl')}${fn('hmm')}
fn ghi = (x) => {
fn ghi(x) {
return 2
}
const abc = 3
const identifierGuy = 5
abc = 3
identifierGuy = 5
yo = 5 + 6
part001 = startSketchOn(XY)
|> startProfile(at = [-1.2, 4.83])
@ -876,7 +876,7 @@ sketch003 = startSketchOn(XZ)
// |> line(end = [-3.86, -2.73])
// |> line(end = [-17.67, 0.85])
// |> close()
// const extrude001 = extrude(sketch001, length = 10)`,
// extrude001 = extrude(sketch001, length = 10)`,
// codeAfter: `sketch001 = startSketchOn(XZ)
// |> startProfile(at = [3.29, 7.86])
// |> line(end = [2.48, 2.44])
@ -904,7 +904,7 @@ sketch003 = startSketchOn(XZ)
// |> line(end = [-8.54, -2.51])
// |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
// |> close()
// const extrude001 = extrude(sketch001, length = 5)
// extrude001 = extrude(sketch001, length = 5)
// sketch002 = startSketchOn(extrude001, face = seg01)
// |> startProfile(at = [-12.55, 2.89])
// |> line(end = [3.02, 1.9])
@ -958,7 +958,7 @@ sketch003 = startSketchOn(XZ)
// |> line(end = [-8.54, -2.51])
// |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
// |> close()
// const extrude001 = extrude(sketch001, length = 5)
// extrude001 = extrude(sketch001, length = 5)
// sketch002 = startSketchOn(extrude001, face = seg01)
// |> startProfile(at = [-12.55, 2.89])
// |> line(end = [3.02, 1.9])