mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-247] Refactored by using a map of promises
This commit is contained in:
@@ -38,9 +38,9 @@ const REINSTATE_BTN = 'reinstate';
|
||||
const SAVE_BTN = 'save';
|
||||
const DISCARD_BTN = 'discard';
|
||||
|
||||
const mockDataServiceMap: any = {
|
||||
[ITEM.value]: () => import('../../shared/testing/test-data-service.mock').then(m => m.TestDataService),
|
||||
};
|
||||
const mockDataServiceMap: any = new Map([
|
||||
[ITEM.value, () => import('../../shared/testing/test-data-service.mock').then(m => m.TestDataService)],
|
||||
]);
|
||||
|
||||
describe('DsoEditMetadataComponent', () => {
|
||||
let component: DsoEditMetadataComponent;
|
||||
|
Reference in New Issue
Block a user