import { commonFilterActivityLogs } from "../constants/defaultFilters.js";

describe("defaultFilters constants", () => {
  describe("commonFilterActivityLogs", () => {
    it("should have SearchText property as empty string", () => {
      expect(commonFilterActivityLogs.SearchText).toBe("");
    });

    it("should have PageSize of 50", () => {
      expect(commonFilterActivityLogs.PageSize).toBe(50);
    });

    it("should have PageNumber of 1", () => {
      expect(commonFilterActivityLogs.PageNumber).toBe(1);
    });

    it("should have IgnorePaging as false", () => {
      expect(commonFilterActivityLogs.IgnorePaging).toBe(false);
    });

    it("should have Filter object with correct properties", () => {
      expect(commonFilterActivityLogs.Filter).toBeDefined();
      expect(commonFilterActivityLogs.Filter.CallStartedOn).toBeNull();
      expect(commonFilterActivityLogs.Filter.CallEndedOn).toBeNull();
      expect(commonFilterActivityLogs.Filter.ResultsFor).toBeNull();
    });

    it("should have SortOrder as DESC", () => {
      expect(commonFilterActivityLogs.SortOrder).toBe("DESC");
    });

    it("should have SortColumn as empty string", () => {
      expect(commonFilterActivityLogs.SortColumn).toBe("");
    });
  });
});
