fix: use an invalid TLD for the test URL (#45375)

pull/45392/head
Lasse Jørgensen 2022-03-09 10:52:31 +01:00 committed by GitHub
parent dc26f5906f
commit b39716539b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ async (getUserInput) => {
const res = await fetch(url + '/api/shorturl', { const res = await fetch(url + '/api/shorturl', {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: `url=ftp:/john-doe.org` body: `url=ftp:/john-doe.invalidTLD`
}); });
if (res.ok) { if (res.ok) {
const { error } = await res.json(); const { error } = await res.json();