[ADF-3854] Destination picker - exclude site content option (#4130)

This commit is contained in:
Suzana Dirla
2019-01-13 20:25:01 +02:00
committed by Eugenio Romano
parent 6be1cf56e3
commit c17241fedc
9 changed files with 98 additions and 3 deletions

View File

@@ -107,6 +107,21 @@ describe('ContentNodeSelectorComponent', () => {
component.chosenNode = expectedNode;
});
it('should be able to filter out the exclude site content', () => {
component.excludeSiteContent = ['blog'];
fixture.detectChanges();
const testSiteContent = new Node({id: 'blog-id', properties: { 'st:componentId': 'blog' }});
expect(component.rowFilter(<any> {node: {entry: testSiteContent}}, null, null)).toBe(false);
});
it('should NOT filter out any site content by default', () => {
fixture.detectChanges();
const testSiteContent = new Node({id: 'blog-id', properties: { 'st:componentId': 'blog' }});
expect(component.rowFilter(<any> {node: {entry: testSiteContent}}, null, null)).toBe(true);
});
});
describe('Breadcrumbs', () => {