Skip to content

Instantly share code, notes, and snippets.

@tylergaw
Created December 10, 2018 00:21
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 tylergaw/57895995a91046c5bfa4a771d0655abd to your computer and use it in GitHub Desktop.
Save tylergaw/57895995a91046c5bfa4a771d0655abd to your computer and use it in GitHub Desktop.
jest.mock("CameraRoll", () => ({
getPhotos: jest
.fn()
.mockImplementation(() => Promise.resolve({ edges: [], page_info: {} })),
saveToCameraRoll: jest
.fn()
.mockImplementation(() => Promise.resolve("protocol://the-new-uri"))
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment