{"version":3,"sources":["../../src/helpers/time.spec.ts"],"sourcesContent":["import { describe, expect, it } from \"@jest/globals\";\nimport { TimeHelper } from \"../helpers\";\n\ndescribe(\"TimeHelper\", () => {\n  describe(\"Date\", () => {\n    it(\"can detect if is the same moment\", () => {\n      // Given\n      const alphaMoment = new Date(2024, 11, 10);\n      const betaMoment = new Date(2024, 11, 10);\n\n      //When\n      const isSame = TimeHelper.isSameMoment(alphaMoment, betaMoment);\n\n      // Then\n      expect(isSame).toBeTruthy(); \n    });\n\n\n    it(\"can detect if is not the same moment\", () => {\n      // Given\n      const alphaMoment = new Date(2022, 11, 10);\n      const betaMoment = new Date(2024, 11, 10);\n\n      //When\n      const isSame = TimeHelper.isSameMoment(alphaMoment, betaMoment);\n\n      // Then\n      expect(isSame).toBeFalsy();\n    });\n\n  });\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAS,UAAU,QAAQ,UAAU;AAArC;AAAA;AAAA;AACA;AAEA,aAAS,cAAc,MAAM;AAC3B,eAAS,QAAQ,MAAM;AACrB,WAAG,oCAAoC,MAAM;AAE3C,gBAAM,cAAc,IAAI,KAAK,MAAM,IAAI,EAAE;AACzC,gBAAM,aAAa,IAAI,KAAK,MAAM,IAAI,EAAE;AAGxC,gBAAM,SAAS,WAAW,aAAa,aAAa,UAAU;AAG9D,iBAAO,MAAM,EAAE,WAAW;AAAA,QAC5B,CAAC;AAGD,WAAG,wCAAwC,MAAM;AAE/C,gBAAM,cAAc,IAAI,KAAK,MAAM,IAAI,EAAE;AACzC,gBAAM,aAAa,IAAI,KAAK,MAAM,IAAI,EAAE;AAGxC,gBAAM,SAAS,WAAW,aAAa,aAAa,UAAU;AAG9D,iBAAO,MAAM,EAAE,UAAU;AAAA,QAC3B,CAAC;AAAA,MAEH,CAAC;AAAA,IACH,CAAC;AAAA;AAAA;","names":[]}