add site form validation tests

This commit is contained in:
realaravinth
2021-05-06 18:16:13 +05:30
parent 20ee5c35c6
commit ab3147e11d
12 changed files with 393 additions and 199 deletions

View File

@@ -33,7 +33,7 @@ const getFormUrl = (querySelector?: string | HTMLFormElement) => {
form = querySelector;
}
if (form !== undefined) {
if (form !== undefined && form !== null) {
return form.action;
} else {
throw new Error("Can't find form");