import secondToTimeConverter from "../utils/secondToTime.js";

describe("secondToTimeConverter", () => {
  it("should convert 0 seconds to 00:00:00", () => {
    expect(secondToTimeConverter(0)).toBe("00:00:00");
  });

  it("should convert 60 seconds to 00:01:00", () => {
    expect(secondToTimeConverter(60)).toBe("00:01:00");
  });

  it("should convert 3600 seconds to 01:00:00", () => {
    expect(secondToTimeConverter(3600)).toBe("01:00:00");
  });

  it("should convert 3661 seconds to 01:01:01", () => {
    expect(secondToTimeConverter(3661)).toBe("01:01:01");
  });

  it("should convert 86400 seconds to 24:00:00", () => {
    expect(secondToTimeConverter(86400)).toBe("24:00:00");
  });

  it("should handle large values", () => {
    expect(secondToTimeConverter(90061)).toBe("25:01:01");
  });

  it("should pad single digit values", () => {
    expect(secondToTimeConverter(3665)).toBe("01:01:05");
  });

  it("should handle 59 seconds", () => {
    expect(secondToTimeConverter(59)).toBe("00:00:59");
  });

  it("should handle 59 minutes", () => {
    expect(secondToTimeConverter(3599)).toBe("00:59:59");
  });
});
