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
This commit is contained in:
Alan Agius 2020-05-15 11:22:25 +02:00 committed by Kara Erickson
parent 011fdfa94f
commit 1689f9378b
1 changed files with 1 additions and 1 deletions

View File

@ -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()`.
};