mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +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;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
// Fix for missing CSS custom property
|
||||
document.documentElement.style.setProperty('--bs-xl', '1200');
|
||||
itemDataService = jasmine.createSpyObj('itemDataService', {
|
||||
findByHref: createSuccessfulRemoteDataObject$(submissionObject.item),
|
||||
});
|
||||
@@ -105,6 +107,10 @@ describe('SubmissionEditComponent Component', () => {
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
if (fixture) {
|
||||
// Ensure Angular cleans up the component properly
|
||||
fixture.destroy();
|
||||
}
|
||||
comp = null;
|
||||
fixture = null;
|
||||
router = null;
|
||||
|
Reference in New Issue
Block a user