mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-03 07:13:09 +00:00
remove mailto test
This commit is contained in:
1 parent
e338370219
commit
961a85dd08
2 files changed
+4
-5
No files matched your search
@@ -8,7 +8,6 @@
|
||||
},
|
||||
"redirect_config": {
|
||||
"custom_paths": {
|
||||
"/email": "mailto:will@hrsn.dev",
|
||||
"/github": "https://github.com/wdhdev"
|
||||
},
|
||||
"redirect_paths": true
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user