August 2017
Beginner
374 pages
10h 41m
English
We start by writing a test for the initial state:
test('initial state should be false (no filter)', () => {
const state = filterReducer(undefined, {})
expect(state).toBe(false)})
Read now
Unlock full access