Skip to content

Commit

Permalink
Add empty string test for DateRegex.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Dec 4, 2023
1 parent 54504f7 commit a82016a
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 @@ -39,6 +39,9 @@ describe('verifies XML Schema DateTime', function() {
});
});
describe('negative', function() {
it('should not accept an empty string', function() {
assertDateTime('', false);
});
it('should not accept a date with lowercase t', function() {
assertDateTime('2019-03-26t14:00:00Z', false);
});
Expand Down

0 comments on commit a82016a

Please sign in to comment.