Skip to content

Commit 01b210e

Browse files
committed
presence tests: Remove tests for some unlikely kinds of bugs
As we've done for similar tests in the past, e.g., see dfb9109.
1 parent 53aae53 commit 01b210e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/presence/__tests__/presenceReducer-test.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ import presenceReducer from '../presenceReducer';
1111
const currentTimestamp = Date.now() / 1000;
1212

1313
describe('presenceReducer', () => {
14-
test('handles unknown action and no state by returning initial state', () => {
15-
const newState = presenceReducer(undefined, {});
16-
expect(newState).toBeDefined();
17-
});
18-
19-
test('on unrecognized action, returns input state unchanged', () => {
20-
const prevState = deepFreeze({ hello: 'world' });
21-
22-
const newState = presenceReducer(prevState, {});
23-
expect(newState).toBe(prevState);
24-
});
25-
2614
describe('REGISTER_COMPLETE', () => {
2715
test('when `presence` data is provided init state with it', () => {
2816
const presenceData = {

0 commit comments

Comments
 (0)