Release v0.1.7 2026-07-12
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { ABILITY_BY_CONTROLLER_BUTTON, ABILITY_CONTROLLER_BINDINGS } from "./controllerBindings";
|
||||
|
||||
describe("PlayStation controller ability bindings", () => {
|
||||
it("keeps prompts aligned with standard gamepad button indices", () => {
|
||||
expect(ABILITY_BY_CONTROLLER_BUTTON).toEqual({
|
||||
0: "purify",
|
||||
1: "shield",
|
||||
2: "mend",
|
||||
3: "renew",
|
||||
4: "radiance",
|
||||
5: "barrier",
|
||||
});
|
||||
expect(Object.values(ABILITY_CONTROLLER_BINDINGS).map(({ glyph }) => glyph)).toEqual([
|
||||
"□",
|
||||
"△",
|
||||
"○",
|
||||
"✕",
|
||||
"L1",
|
||||
"R1",
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user