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:
committed by
Nick Cameron
parent
99866b5f9a
commit
10c446151b
@ -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,
|
||||
|
Reference in New Issue
Block a user