Skip to content
Snippets Groups Projects
Commit ae407af3 authored by Muthukrishnanmatriot's avatar Muthukrishnanmatriot
Browse files

TMSS-1803 - resolved test case issue

parent 1d5b51d6
No related branches found
No related tags found
1 merge request!857Resolve TMSS-1803
......@@ -78,7 +78,10 @@ const Validator = {
isValidDuration(duration) {
let isValid = false;
if (duration && duration.includes(':')) {
duration = duration.replaceAll("_", "0");
//Here below condition required for unit test as its not recognized the replaceAll
if (duration.includes('_')) {
duration = duration.replaceAll("_", "0");
}
var timeFormat = /^([0-9]|[0-1][0-9]|[0-2][0-3]):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]) || (24:00:00)$/;
isValid = timeFormat.test(duration);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment