We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c3b9eb commit b89356eCopy full SHA for b89356e
chapter-07/weather_redux/test/weather/reducer.test.js
@@ -0,0 +1,14 @@
1
+import * as actions from '../../src/weather/actions.js';
2
+import * as actionTypes from '../../src/weather/actionTypes.js';
3
+import * as Status from '../../src/weather/status.js';
4
+import reducer from '../../src/weather/reducer.js';
5
+
6
+describe('weather/reducer', () => {
7
+ it('should return loading status', () => {
8
+ const action = actions.fetchWeatherStarted();
9
10
+ const newState = reducer({}, action);
11
12
+ expect(newState.status).toBe(Status.LOADING);
13
+ });
14
+});
0 commit comments