Skip to content

Commit

Permalink
fix for 12hr regex
Browse files Browse the repository at this point in the history
thanks to @roramirez for testing and catching it.
  • Loading branch information
Sergey Morozov committed Jan 31, 2017
1 parent 86fdd91 commit fc2a554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/modules/clock_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe("Clock module", function () {
});

it("shows time in 12hr format", function() {
const timeRegex = /^(?:1[0-2]|[0]\d):[0-5]\d[0-5]\d[ap]m$/;
const timeRegex = /^(?:1[0-2]|[1-9]):[0-5]\d[0-5]\d[ap]m$/;
return app.client.waitUntilWindowLoaded()
.getText(".clock .time").should.eventually.match(timeRegex);
});
Expand All @@ -95,7 +95,7 @@ describe("Clock module", function () {
});

it("shows 12hr time with upper case AM/PM", function() {
const timeRegex = /^(?:1[0-2]|[0]\d):[0-5]\d[0-5]\d[AP]M$/;
const timeRegex = /^(?:1[0-2]|[1-9]):[0-5]\d[0-5]\d[AP]M$/;
return app.client.waitUntilWindowLoaded()
.getText(".clock .time").should.eventually.match(timeRegex);
});
Expand Down

0 comments on commit fc2a554

Please sign in to comment.