From 1689f9378b4d8cd75a611850abe09de083ad2351 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Fri, 15 May 2020 11:22:25 +0200 Subject: [PATCH] test: fix AIO doc-viewer.component tests (#37129) Some tests currently fail with a TS error ``` TS2783: 'id' is specified more than once, so this usage will be overwritten. ``` This changes fixes that. PR Close #37129 --- aio/src/app/layout/doc-viewer/doc-viewer.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/src/app/layout/doc-viewer/doc-viewer.component.spec.ts b/aio/src/app/layout/doc-viewer/doc-viewer.component.spec.ts index e3edc9ea33..6aabeb6629 100644 --- a/aio/src/app/layout/doc-viewer/doc-viewer.component.spec.ts +++ b/aio/src/app/layout/doc-viewer/doc-viewer.component.spec.ts @@ -45,7 +45,7 @@ describe('DocViewerComponent', () => { let renderSpy: jasmine.Spy; const setCurrentDoc = (newDoc: TestParentComponent['currentDoc']) => { - parentComponent.currentDoc = newDoc && {id: 'fizz/buzz', ...newDoc}; + parentComponent.currentDoc = newDoc; parentFixture.detectChanges(); // Run change detection to propagate the new doc to `DocViewer`. safeFlushAsapScheduler(); // Flush `asapScheduler` to trigger `DocViewer#render()`. };