Created
August 12, 2017 11:41
-
-
Save ddialar/d0e6c066a3ad5eefaf0c35dec21d2656 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
import 'jest'; | |
var sum = jest.fn().mockReturnValue(20); | |
var dif = jest.fn().mockReturnValue(-20); | |
const calculator = jest.mock('../calculator', () => { | |
return { | |
sum, | |
dif | |
}; | |
}); | |
export default calculator; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment