Browse Source

feat: enhance test cases

yaavi 8 months ago
parent
commit
d0f819aec8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/utils/dayjs.test.ts

+ 1 - 0
test/utils/dayjs.test.ts

@@ -21,6 +21,7 @@ describe("SimpleDayjs", () => {
     expect(date1.diff(date2, "year")).toBe(24);
     expect(date1.diff(date2, "month")).toBe(289);
     expect(date1.diff(date2, "day")).toBe(8806);
+    expect(date1.diff(date2)).toBe(8806);
   });
 
   it("should format the start of the year", () => {