Skip to content

Commit 502597a

Browse files
author
Zahraa Chreim
committed
127047: Fix submission-edit.component.spec.ts
1 parent 2fc8478 commit 502597a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/app/submission/edit/submission-edit.component.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ describe('SubmissionEditComponent Component', () => {
5757
const submissionObject: any = mockSubmissionObject;
5858

5959
beforeEach(waitForAsync(() => {
60+
// Fix for missing CSS custom property
61+
document.documentElement.style.setProperty('--bs-xl', '1200');
6062
itemDataService = jasmine.createSpyObj('itemDataService', {
6163
findByHref: createSuccessfulRemoteDataObject$(submissionObject.item),
6264
});
@@ -105,6 +107,10 @@ describe('SubmissionEditComponent Component', () => {
105107
});
106108

107109
afterEach(() => {
110+
if (fixture) {
111+
// Ensure Angular cleans up the component properly
112+
fixture.destroy();
113+
}
108114
comp = null;
109115
fixture = null;
110116
router = null;

0 commit comments

Comments
 (0)