mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
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:
+2
-2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user