Skip to content

Commit dc9edbf

Browse files
committed
removed test for setting null projectid
1 parent aa7f015 commit dc9edbf

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/unit/reducers/project-state-reducer.test.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,6 @@ test('setProjectId, with same id as before, but not same type, should fetch beca
165165
expect(resultState.projectId).toBe(100);
166166
});
167167

168-
test('setProjectId, provided a null id, should not change state', () => {
169-
const initialState = {
170-
projectId: '100',
171-
loadingState: LoadingState.SHOWING_WITH_ID
172-
};
173-
const action = setProjectId(null);
174-
const resultState = projectStateReducer(initialState, action);
175-
expect(resultState.loadingState).toBe(LoadingState.SHOWING_WITH_ID);
176-
expect(resultState.projectId).toBe('100');
177-
});
178-
179168
test('requestNewProject, when can\'t save, should fetch default project without id', () => {
180169
const initialState = {
181170
loadingState: LoadingState.SHOWING_WITHOUT_ID

0 commit comments

Comments
 (0)