Issues (19)

test/settings/reducers/settings.test.js (1 issue)

Labels
Severity
1
import reducer, { SET_REAL_TIME_UPDATES, setRealTimeUpdates } from '../../../src/settings/reducers/settings';
2
3
describe('settingsReducer', () => {
4
  const realTimeUpdates = { enabled: true };
5
6
  describe('reducer', () => {
7
    it('returns realTimeUpdates when action is SET_REAL_TIME_UPDATES', () => {
8
      expect(reducer({}, { type: SET_REAL_TIME_UPDATES, realTimeUpdates })).toEqual({ realTimeUpdates });
9
    });
10
  });
11
12
  describe('setRealTimeUpdates', () => {
13
    it.each([[ true ], [ false ]])('updates settings with provided value and then loads updates again', (enabled) => {
0 ignored issues
show
The variable it seems to be never declared. If this is a global, consider adding a /** global: it */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
14
      const result = setRealTimeUpdates(enabled);
15
16
      expect(result).toEqual({ type: SET_REAL_TIME_UPDATES, realTimeUpdates: { enabled } });
17
    });
18
  });
19
});
20