Created
August 2, 2017 12:44
-
-
Save mckomo/128bdb43434749ca1a2299d456ed7d7c 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 eventStub = value => ({ | |
stopPropagation: () => {}, | |
preventDefault: () => {}, | |
persist: () => {}, | |
target: { | |
value, | |
checked: value, | |
}, | |
...value, | |
}); | |
export default eventStub; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment