Skip to content

Commit

Permalink
narrowsReducer tests: Remove a test that won't type-check.
Browse files Browse the repository at this point in the history
Flow won't allow these inputs (a GlobalState of `undefined`, or an
action of `{}`).
  • Loading branch information
chrisbobbe authored and gnprice committed Jul 21, 2020
1 parent 27e20aa commit 55d6461
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/chat/__tests__/narrowsReducer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ describe('narrowsReducer', () => {
const streamNarrowStr = JSON.stringify(streamNarrow('some stream'));
const topicNarrowStr = JSON.stringify(topicNarrow('some stream', 'some topic'));

test('handles unknown action and no previous state by returning initial state', () => {
const newState = narrowsReducer(undefined, {});
expect(newState).toBeDefined();
});

describe('EVENT_NEW_MESSAGE', () => {
test('if not caught up in narrow, do not add message in home narrow', () => {
const initialState = deepFreeze({
Expand Down

0 comments on commit 55d6461

Please sign in to comment.