Fix the last test

Test was looking for `lineTo` as a substring of the input KCL program.
But there's no more lineTo function, so I changed it to look for
line() with an endAbsolute arg, which is the new equivalent.

Also changed the getConstraintInfo code to look up the lineTo if using
line with endAbsolute.
This commit is contained in:
Adam Chalmers
2025-01-15 15:38:15 -06:00
committed by Nick Cameron
parent 99866b5f9a
commit 10c446151b
3 changed files with 9 additions and 6 deletions

View File

@ -245,6 +245,7 @@ export const parse = (code: string | Error): ParseResult | Error => {
return new ParseResult(parsed[0], errs.errors, errs.warnings)
} catch (e: any) {
// throw e
console.error(e.toString())
const parsed: RustKclError = JSON.parse(e.toString())
return new KCLError(
parsed.kind,