mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
65717: AoT build error fixes
This commit is contained in:
@@ -47,38 +47,6 @@ describe('UploadBistreamComponent', () => {
|
|||||||
});
|
});
|
||||||
const notificationsServiceStub = new NotificationsServiceStub();
|
const notificationsServiceStub = new NotificationsServiceStub();
|
||||||
|
|
||||||
describe('when queryParam bundleName is missing', () => {
|
|
||||||
beforeEach(async(() => {
|
|
||||||
createUploadBitstreamTestingModule({});
|
|
||||||
}));
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
loadFixtureAndComp();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('uploadProperties.bundleName should default to "ORIGINAL"', () => {
|
|
||||||
expect(comp.uploadProperties.bundleName).toEqual('ORIGINAL');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('when queryParam bundleName has a value', () => {
|
|
||||||
const customBundleName = 'FAKE-BUNDLE';
|
|
||||||
|
|
||||||
beforeEach(async(() => {
|
|
||||||
createUploadBitstreamTestingModule({
|
|
||||||
bundleName: customBundleName
|
|
||||||
});
|
|
||||||
}));
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
loadFixtureAndComp();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('uploadProperties.bundleName should be set to the custom bundle name', () => {
|
|
||||||
expect(comp.uploadProperties.bundleName).toEqual(customBundleName);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('when a file is uploaded', () => {
|
describe('when a file is uploaded', () => {
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
createUploadBitstreamTestingModule({});
|
createUploadBitstreamTestingModule({});
|
||||||
|
@@ -79,7 +79,12 @@ describe('objectUpdatesReducer', () => {
|
|||||||
changeType: FieldChangeType.ADD
|
changeType: FieldChangeType.ADD
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lastModified: modDate
|
lastModified: modDate,
|
||||||
|
customOrder: {
|
||||||
|
initialOrder: [],
|
||||||
|
newOrder: [],
|
||||||
|
changed: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -213,7 +218,12 @@ describe('objectUpdatesReducer', () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
fieldUpdates: {},
|
fieldUpdates: {},
|
||||||
lastModified: modDate
|
lastModified: modDate,
|
||||||
|
customOrder: {
|
||||||
|
initialOrder: [],
|
||||||
|
newOrder: [],
|
||||||
|
changed: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const newState = objectUpdatesReducer(testState, action);
|
const newState = objectUpdatesReducer(testState, action);
|
||||||
|
Reference in New Issue
Block a user