Skip to content

Commit 3ab623c

Browse files
committed
Fix test
1 parent 2ffdd6f commit 3ab623c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/utils.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { KCWDate } from "../src/utils";
44

55
describe("format", () => {
66
it("should format date correctly", () => {
7-
const date = new KCWDate("August 25, 2024 07:00:00 GMT+0900");
7+
const date = new KCWDate("August 25, 2024 07:00:00");
88
expect(date.format("yyyy/MM/dd HH:mm:ss")).toBe("2024/08/25 07:00:00");
99
});
1010
});
1111

1212
describe("ETA", () => {
1313
it("should calculate ETA correctly", () => {
14-
const date = new KCWDate("August 25, 2024 07:00:00 GMT+0900");
14+
const date = new KCWDate("August 25, 2024 07:00:00");
1515
const eta = KCWDate.ETA(1000 * 60 * 60, date.getTime());
1616
expect(eta.format("yyyy/MM/dd HH:mm:ss")).toBe("2024/08/25 08:00:00");
1717
});

0 commit comments

Comments
 (0)