Last active
April 13, 2020 18:08
-
-
Save mrcleanandfresh/d90ddc9aadd0569a6d850b5530a0f3c1 to your computer and use it in GitHub Desktop.
I am having a problem properly mocking this single function in a way where I can overwrite it for each test case.
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
import { AppContext } from '../../index'; | |
export const getCountStatus = fetch( | |
`${AppContext.WEB_APP_URL}/api/counts/status`, { | |
credentials: 'include', | |
headers: new Headers( { 'Content-Type': 'text/plain' } ) | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment