Skip to content
Snippets Groups Projects
Commit dc9edbfd authored by Ben Wheeler's avatar Ben Wheeler
Browse files

removed test for setting null projectid

parent aa7f015c
No related branches found
No related tags found
No related merge requests found
......@@ -165,17 +165,6 @@ test('setProjectId, with same id as before, but not same type, should fetch beca
expect(resultState.projectId).toBe(100);
});
test('setProjectId, provided a null id, should not change state', () => {
const initialState = {
projectId: '100',
loadingState: LoadingState.SHOWING_WITH_ID
};
const action = setProjectId(null);
const resultState = projectStateReducer(initialState, action);
expect(resultState.loadingState).toBe(LoadingState.SHOWING_WITH_ID);
expect(resultState.projectId).toBe('100');
});
test('requestNewProject, when can\'t save, should fetch default project without id', () => {
const initialState = {
loadingState: LoadingState.SHOWING_WITHOUT_ID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment