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:
parent
011fdfa94f
commit
1689f9378b
|
@ -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()`.
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue