Created
September 26, 2020 08:55
-
-
Save janhesters/72d88e7d54f3b3e7b013963986dd3703 to your computer and use it in GitHub Desktop.
Setup with populated state factory function.
This file contains hidden or 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 summand = 1; | |
const state = createPopulatedState(); | |
assert({ | |
given: 'state with a count and an increment by action', | |
should: 'increment the count by the payload', | |
actual: reducer(state, incrementBy(summand)), | |
expected: createPopulatedState({ count: 42 /* , ... rest untouched */ }), | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment