mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
127047: Fix submission-edit.component.spec.ts
This commit is contained in:
@@ -57,6 +57,8 @@ describe('SubmissionEditComponent Component', () => {
|
|||||||
const submissionObject: any = mockSubmissionObject;
|
const submissionObject: any = mockSubmissionObject;
|
||||||
|
|
||||||
beforeEach(waitForAsync(() => {
|
beforeEach(waitForAsync(() => {
|
||||||
|
// Fix for missing CSS custom property
|
||||||
|
document.documentElement.style.setProperty('--bs-xl', '1200');
|
||||||
itemDataService = jasmine.createSpyObj('itemDataService', {
|
itemDataService = jasmine.createSpyObj('itemDataService', {
|
||||||
findByHref: createSuccessfulRemoteDataObject$(submissionObject.item),
|
findByHref: createSuccessfulRemoteDataObject$(submissionObject.item),
|
||||||
});
|
});
|
||||||
@@ -105,6 +107,10 @@ describe('SubmissionEditComponent Component', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
if (fixture) {
|
||||||
|
// Ensure Angular cleans up the component properly
|
||||||
|
fixture.destroy();
|
||||||
|
}
|
||||||
comp = null;
|
comp = null;
|
||||||
fixture = null;
|
fixture = null;
|
||||||
router = null;
|
router = null;
|
||||||
|
Reference in New Issue
Block a user