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",
    ]);
  });
});
