Skip to content

Commit

Permalink
Fix ci checking date format
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaidong committed Jun 24, 2024
1 parent d6e0cd1 commit 6cc21f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/date_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Deno.test("check if .formatDateString() works correctly", async (t) => {

await t.step(" check .formatDateString() with default options", () => {
const result = formatDateString(d);
const reg = /^\w+\s\d+,\s+\d{4},\s\d+:\d+:\d+\s(AM|PM)\s(GMT)\+\d+$/;
const reg = /^\w+\s\d+,\s+\d{4},\s\d+:\d+:\d+\s(AM|PM)+/;
assertEquals(result.match(reg) !== null, true);
});

Expand Down

0 comments on commit 6cc21f1

Please sign in to comment.