Skip to content

Commit

Permalink
Update date format regex in Linux Command Test
Browse files Browse the repository at this point in the history
Update the date format regex to allow for single-digit day numbers in
order to match the expected output.

Generated by gpt-3.5-turbo
  • Loading branch information
joone committed Mar 3, 2024
1 parent e9c9752 commit da78ada
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ describe("Linux Command Test", () => {
);
} else {
// Sat Feb 24 06:49:11 UTC 2024
expect(stdout).to.match(/\w{3} \w{3} \d{2} \d{2}:\d{2}:\d{2} UTC \d{4}/);
expect(stdout).to.match(
/\w{3} \w{3} \s?\d{1,2} \d{2}:\d{2}:\d{2} UTC \d{4}/
);
}
});

Expand Down

0 comments on commit da78ada

Please sign in to comment.