fix: use an invalid TLD for the test URL (#45375)
parent
dc26f5906f
commit
b39716539b
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue