Last active
January 17, 2018 22:19
-
-
Save danielpowell4/647ab50d47f27d38279fe64e30ec0ebf to your computer and use it in GitHub Desktop.
Drop in stub/mock for a fetch while the backend Api is still being development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const expectedResponse = { key: "value" }; | |
export const fetchObjects = parentId => | |
new Promise((resolve, reject) => { | |
setTimeout(() => resolve(expectedResponse), 1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment