mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-08-30 17:05:59 +08:00
fix(curriculum): stub fetch in fCC Authors Page workshop step 26 tests (#69240)
This commit is contained in:
+6
@@ -11,6 +11,12 @@ When calling an asynchronous function, you can either await the function's retur
|
||||
|
||||
Add a function call to `initialFetch` in the indicated space in the editor.
|
||||
|
||||
# --before-all--
|
||||
|
||||
```js
|
||||
window.fetch = () => Promise.resolve({json: () => Promise.resolve([{ author: 'Whoever', image: 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==', url: "http://not-a-real-url.nowhere/", bio: 'words go here' }])});
|
||||
```
|
||||
|
||||
# --hints--
|
||||
|
||||
You should call `initialFetch` without any arguments.
|
||||
|
||||
Reference in New Issue
Block a user