remove mailto test

This commit is contained in:
William Harrison committed 2025-01-13 13:29:46 +08:00
1 parent e338370219
commit 961a85dd08
2 files changed
+4 -5

No files matched your search

-1
View File
@@ -8,7 +8,6 @@
},
"redirect_config": {
"custom_paths": {
"/email": "mailto:will@hrsn.dev",
"/github": "https://github.com/wdhdev"
},
"redirect_paths": true
+4 -4
View File
@@ -186,10 +186,10 @@ function validateRecordValues(t, data, file) {
data.record.URL !== customRedirectURL,
`${urlMessage} should be different from the URL record at index ${idx}`
);
// t.true(
// customRedirectURL.startsWith("http://") || customRedirectURL.startsWith("https://"),
// `${urlMessage} must start with http:// or https:// at index ${idx}`
// );
t.true(
customRedirectURL.startsWith("http://") || customRedirectURL.startsWith("https://"),
`${urlMessage} must start with http:// or https:// at index ${idx}`
);
t.notThrows(() => new URL(customRedirectURL), `${urlMessage} contains an invalid URL at index ${idx}`);
// Check for self-referencing redirects