Skip to content

Commit d88ec6a

Browse files
committed
fetching tests [nfc]: File an ungrouped test under MESSAGE_FETCH_COMPLETE
1 parent 692a881 commit d88ec6a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/chat/__tests__/fetchingReducer-test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ describe('fetchingReducer', () => {
9090
}),
9191
).toEqual({ [HOME_NARROW_STR]: { older: false, newer: true } });
9292
});
93-
});
9493

95-
test('if fetched messages are from a search narrow, ignore them', () => {
96-
const prevState = deepFreeze({ [HOME_NARROW_STR]: { older: true, newer: true } });
97-
expect(
98-
fetchingReducer(
99-
prevState,
100-
deepFreeze({ ...eg.action.message_fetch_complete, narrow: SEARCH_NARROW('some query') }),
101-
),
102-
).toEqual(prevState);
94+
test('if fetched messages are from a search narrow, ignore them', () => {
95+
const prevState = deepFreeze({ [HOME_NARROW_STR]: { older: true, newer: true } });
96+
expect(
97+
fetchingReducer(
98+
prevState,
99+
deepFreeze({ ...eg.action.message_fetch_complete, narrow: SEARCH_NARROW('some query') }),
100+
),
101+
).toEqual(prevState);
102+
});
103103
});
104104
});

0 commit comments

Comments
 (0)