Skip to content

Instantly share code, notes, and snippets.

@danielpowell4
Last active January 17, 2018 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielpowell4/647ab50d47f27d38279fe64e30ec0ebf to your computer and use it in GitHub Desktop.
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
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