Claude Ultracode Fixes

This commit is contained in:
chk
2026-06-08 18:17:53 +02:00
parent 7595bae8a1
commit 10d306b7d4
9 changed files with 46 additions and 14 deletions

View File

@@ -25,8 +25,8 @@ describe("TelnetSenderGRBL.execCommand", () => {
sender.execCommand("G1", mOld, mNew);
// ✅ verify output
expect(sender.tSocket.written).toBe("G1 x12.34 y90.00 z-90.00 f2300.00\r\n");
// ✅ verify output — G1 moves must be sent in absolute mode (G90 prefix)
expect(sender.tSocket.written).toBe("G90 G1 x12.34 y90.00 z-90.00 f2300.00\r\n");
});
@@ -54,8 +54,8 @@ describe("TelnetSenderGRBL.execCommand", () => {
sender.execCommand("G1", mOld, mNew);
// ✅ verify output
expect(sender.tSocket.written).toBe("G1 x22.50 f2300.00\r\n");
// ✅ verify output — G1 moves must be sent in absolute mode (G90 prefix)
expect(sender.tSocket.written).toBe("G90 G1 x22.50 f2300.00\r\n");
});
test("writes correct G-code G92 to mocked tSocket", () => {