Fixed build error

This commit is contained in:
Giuseppe Digilio
2019-01-17 11:53:00 +01:00
parent e6ec979d44
commit d76376ef92
13 changed files with 113 additions and 107 deletions

View File

@@ -44,7 +44,11 @@ describe('submissionReducer test suite', () => {
const submissionDefinition = mockSubmissionDefinitionResponse;
const selfUrl = mockSubmissionSelfUrl;
const initState: SubmissionObjectState = mockSubmissionState;
let initState: any;
beforeEach(() => {
initState = Object.assign({}, mockSubmissionState);
});
it('should init submission state properly', () => {
const expectedState = {
@@ -164,6 +168,7 @@ describe('submissionReducer test suite', () => {
depositPending: false
}
};
const action = new CompleteInitSubmissionFormAction(submissionId);
const newState = submissionObjectReducer(state, action);