LemonyDesign / vibrant-corpse

Vibrant corpse: A brainstorming app based on randomized word combinations (adjective-noun / adverb-verb) fetched from Words API.
https://vibrant-corpse.herokuapp.com/
1 stars 0 forks source link

setFavourites.test (reducer) fails #8

Open LemonyDesign opened 5 years ago

LemonyDesign commented 5 years ago
  test('handles removing favourites', () => {
    const action = {
      type: 'FAVOURITES_REMOVE',
    };
    const expectedState = ['vibrant corpse'];
    const outputState = setFavourites(filledState, action);
    expect(outputState).toEqual(expectedState);
  });

Functionality to remove favourite from array not reflected by test

LemonyDesign commented 5 years ago
  test('handles removing favourites', () => {
    const action = {
      type: 'FAVOURITES_REMOVE',
    };
    const expectedState = ['vibrant corpse'];
    const outputState = setFavourites(filledState, action);
    expect(outputState).toEqual(expectedState);
  });

↳ tests/reducers/setFavourites.test.js