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: "ability4",
      1: "ability3",
      2: "ability1",
      3: "ability2",
      4: "ability5",
      5: "ability6",
    });
    expect(Object.values(ABILITY_CONTROLLER_BINDINGS).map(({ glyph }) => glyph)).toEqual([
      "□",
      "△",
      "○",
      "✕",
      "L1",
      "R1",
    ]);
  });
});
