mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Added tests
This commit is contained in:
@@ -135,7 +135,9 @@ describe('submissionReducer test suite', () => {
|
||||
sectionType: 'upload',
|
||||
collapsed: false,
|
||||
enabled: true,
|
||||
data: {},
|
||||
data: {
|
||||
files:[]
|
||||
},
|
||||
errors: [],
|
||||
isLoading: false,
|
||||
isValid: false
|
||||
@@ -623,10 +625,9 @@ describe('submissionReducer test suite', () => {
|
||||
}
|
||||
];
|
||||
|
||||
let action: any = new UpdateSectionDataAction(submissionId, 'traditionalpageone', {}, errors);
|
||||
const action: any = new RemoveSectionErrorsAction(submissionId, 'traditionalpageone');
|
||||
let newState;
|
||||
|
||||
action = new RemoveSectionErrorsAction(submissionId, 'traditionalpageone');
|
||||
newState = submissionObjectReducer(initState, action);
|
||||
|
||||
expect(newState[826].sections.traditionalpageone.errors).toEqual([]);
|
||||
|
Reference in New Issue
Block a user