mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3854] Destination picker - exclude site content option (#4130)
This commit is contained in:
committed by
Eugenio Romano
parent
6be1cf56e3
commit
c17241fedc
@@ -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', () => {
|
||||
|
Reference in New Issue
Block a user