Skip to content

Commit

Permalink
Add test for no digits after decimal sign.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Nov 29, 2023
1 parent d0517c0 commit 9775ac6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/20-dateRegex.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,8 @@ describe('verifies RFC3339 Dates', function() {
it('should not verify seconds greater than 60', function() {
assertInvalid('2017-10-22T15:15:65Z');
});
it('should not verify if no digits after decimal sign', function() {
assertInvalid('2019-03-26T14:00:00.');
});
});
});

0 comments on commit 9775ac6

Please sign in to comment.