import { getLengthFromPart } from "./codeInput.utils.js";
describe("getLengthFromPart", () => {
  it("should return the number value as the required character length", () => {
    const part = 10;
    const length = getLengthFromPart(part);
    expect(length).toBe(10);
  });
  it("should return 0 as the required character length for a string value", () => {
    const part = "example";
    const length = getLengthFromPart(part);
    expect(length).toBe(0);
  });
  it("should return the length property as the required character length for an object", () => {
    const part = { length: 3 };
    const length = getLengthFromPart(part);
    expect(length).toBe(3);
  });
});
//# sourceMappingURL=codeInput.utils.spec.js.map
