Beispiel #1
0
    test('should handle update keywords', () => {
        const keywords = 'some keywords';
        const expectedState = defaultState.set('keywords', keywords);

        expect(
            reducer(defaultState, {
                type: type.BIZ_TOOLBAR_KEYWORDS_UPDATE,
                payload: keywords
            })
        ).toEqual(expectedState);
    });
Beispiel #2
0
 test('should return the default state', () => {
     expect(reducer(undefined, {type: 'UNKNOWN'})).toEqual(defaultState);
 });