65717: AoT build error fixes

This commit is contained in:
Kristof De Langhe
2019-10-23 14:49:14 +02:00
parent 7adb50a9b8
commit cbbc776922
2 changed files with 12 additions and 34 deletions

View File

@@ -47,38 +47,6 @@ describe('UploadBistreamComponent', () => {
});
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', () => {
beforeEach(async(() => {
createUploadBitstreamTestingModule({});

View File

@@ -79,7 +79,12 @@ describe('objectUpdatesReducer', () => {
changeType: FieldChangeType.ADD
}
},
lastModified: modDate
lastModified: modDate,
customOrder: {
initialOrder: [],
newOrder: [],
changed: false
}
}
};
@@ -213,7 +218,12 @@ describe('objectUpdatesReducer', () => {
},
},
fieldUpdates: {},
lastModified: modDate
lastModified: modDate,
customOrder: {
initialOrder: [],
newOrder: [],
changed: false
}
}
};
const newState = objectUpdatesReducer(testState, action);