Merge remote-tracking branch 'upstream/main' into local-attack

This commit is contained in:
Aotumuri
2026-01-12 12:22:52 +09:00
63 changed files with 2826 additions and 2277 deletions
+3 -3
View File
@@ -431,7 +431,7 @@ describe("InputHandler AutoUpgrade", () => {
expect((inputHandler as any).keybinds.moveUp).toBe("KeyX");
});
test("ignores non-string and 'Null' values and preserves defaults", () => {
test("ignores non-string values and preserves defaults, but keeps 'Null' for unbound keys", () => {
const mixed = {
moveUp: { key: "moveUp", value: null },
moveLeft: "Null",
@@ -440,9 +440,9 @@ describe("InputHandler AutoUpgrade", () => {
inputHandler.initialize();
// defaults from InputHandler should remain
expect((inputHandler as any).keybinds.moveUp).toBe("KeyW");
expect((inputHandler as any).keybinds.moveLeft).toBe("KeyA");
// "Null" is preserved to indicate unbound keybind
expect((inputHandler as any).keybinds.moveLeft).toBe("Null");
});
test("handles invalid JSON gracefully and warns", () => {