import { excludeControls } from "./excludeControls";

describe("excludeControls", () => {
  describe("given a list of props", () => {
    it("returns an object where each prop has an entry with disabled params", () => {
      const props = ["className", "elementType"];

      const actual = excludeControls(...props);

      const expected = {
        elementType: {
          table: {
            disable: true,
          },
        },
        className: {
          table: {
            disable: true,
          },
        },
      };

      expect(actual).toEqual(expected);
    });
  });
});
