Skip to content

Commit 8f2aeb2

Browse files
KasinhouMatus Kasakclaude
authored
ZCU-PUB/fix: split merged providers in file-download-link spec (TS1117) (#1401)
The FileDownloadLinkComponent spec declared both providers in a single object literal, so the second `provide`/`useValue` pair overwrote the first. TypeScript flagged this as TS1117 (duplicate object key), failing the spec bundle compilation and blocking the entire `test:headless` run. Split into two separate provider entries so both AuthorizationDataService and DSONameService are registered. DSONameService is required: the component injects and uses it (file-download-link.component.ts). Co-authored-by: Matus Kasak <matus.kasak@dataquest.sk> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d837892 commit 8f2aeb2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/shared/file-download-link/file-download-link.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ describe('FileDownloadLinkComponent', () => {
5353
],
5454
declarations: [FileDownloadLinkComponent, RouterLinkDirectiveStub],
5555
providers: [
56-
{provide: AuthorizationDataService, useValue: authorizationService, provide: DSONameService, useValue: dsoNameService},
56+
{provide: AuthorizationDataService, useValue: authorizationService},
57+
{provide: DSONameService, useValue: dsoNameService},
5758
],
5859
schemas: [NO_ERRORS_SCHEMA],
5960
})

0 commit comments

Comments
 (0)