fix(curriculum) : stringify uncloneable search params in Basic Node Post Challenge (#66132)

Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
Anna
2026-05-09 06:25:09 -04:00
committed by GitHub
parent 73ac6981ba
commit 798e409dd5
@@ -36,7 +36,7 @@ Test 1 : Your API endpoint should respond with the correct name
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({ first: 'Mick', last: 'Jagger' })
body: new URLSearchParams({ first: 'Mick', last: 'Jagger' }).toString()
});
if (!response.ok) {
throw new Error(await response.text());
@@ -60,7 +60,7 @@ Test 2 : Your API endpoint should respond with the correct name
body: new URLSearchParams({
first: 'Keith',
last: 'Richards'
})
}).toString()
});
if (!response.ok) {
throw new Error(await response.text());