Last active
February 22, 2021 18:38
-
-
Save fernandodof/f46dd7beaf1dc4b16e8e0e88f4e25676 to your computer and use it in GitHub Desktop.
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 MOCK_PRICES = [50, 47, 53, 50, 49, 51, 52]; | |
global.fetch = jest.fn(() => Promise.resolve({ | |
json: () => Promise.resolve(MOCK_PRICES) | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment