mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
ACS-8770: fixes site selection unit test setup
This commit is contained in:
+2
-2
@@ -131,10 +131,10 @@ describe('ContentNodeSelectorPanelComponent', () => {
|
|||||||
expect(lastValue).toBe('fake-site');
|
expect(lastValue).toBe('fake-site');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should trigger siteChange event when a site is selected in sites-dropdown', async () => {
|
it('should trigger siteChange event when a site is selected in sites-dropdown', () => {
|
||||||
const fakeSiteEntry = new SiteEntry({ entry: new Site({ title: 'fake-new-site', guid: 'fake-new-site' }) });
|
const fakeSiteEntry = new SiteEntry({ entry: new Site({ title: 'fake-new-site', guid: 'fake-new-site' }) });
|
||||||
|
component.ngOnInit();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
await fixture.whenStable();
|
|
||||||
|
|
||||||
let lastValue: string;
|
let lastValue: string;
|
||||||
component.siteChange.subscribe((siteTitle: string) => (lastValue = siteTitle));
|
component.siteChange.subscribe((siteTitle: string) => (lastValue = siteTitle));
|
||||||
|
|||||||
Reference in New Issue
Block a user