diff --git a/src/utils/index.spec.ts b/src/utils/index.spec.ts index fcad5a5..b4f4de9 100644 --- a/src/utils/index.spec.ts +++ b/src/utils/index.spec.ts @@ -56,7 +56,7 @@ describe("datetime utils", () => { describe("formatTime", () => { it("works", () => { - expect(formatTime(mockedUnixTime - 60)).toEqual("Sat, Aug 22, 2020, 3:42 PM") + expect(formatTime(mockedUnixTime - 60)).toMatch(/Sat, Aug 22, 2020, 3:42 PM/u) }) })