mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ADF-4707] add properties in node selector search (#4878)
* add properties in node selector search * fix test
This commit is contained in:
parent
d531a022d0
commit
90c403ae9e
@ -331,7 +331,7 @@ describe('ContentNodeSelectorComponent', () => {
|
||||
query: {
|
||||
query: searchTerm ? `${searchTerm}* OR name:${searchTerm}*` : searchTerm
|
||||
},
|
||||
include: ['path', 'allowableOperations'],
|
||||
include: ['path', 'allowableOperations', 'properties'],
|
||||
paging: {
|
||||
maxItems: 25,
|
||||
skipCount: skipCount
|
||||
|
@ -23,6 +23,7 @@ import { ContentTestingModule } from '../testing/content.testing.module';
|
||||
|
||||
class SearchServiceMock {
|
||||
public query: QueryBody;
|
||||
|
||||
searchByQueryBody(query: QueryBody) {
|
||||
this.query = query;
|
||||
}
|
||||
@ -56,7 +57,7 @@ describe('ContentNodeSelectorService', () => {
|
||||
it('should make it including the path and allowableOperations', () => {
|
||||
service.search('nuka cola quantum');
|
||||
|
||||
expect(search.query.include).toEqual(['path', 'allowableOperations']);
|
||||
expect(search.query.include).toEqual(['path', 'allowableOperations', 'properties']);
|
||||
});
|
||||
|
||||
it('should make the search restricted to nodes only', () => {
|
||||
|
@ -60,7 +60,7 @@ export class ContentNodeSelectorService {
|
||||
query: {
|
||||
query: `${searchTerm}* OR name:${searchTerm}*`
|
||||
},
|
||||
include: ['path', 'allowableOperations'],
|
||||
include: ['path', 'allowableOperations', 'properties'],
|
||||
paging: {
|
||||
maxItems: maxItems,
|
||||
skipCount: skipCount
|
||||
|
Loading…
x
Reference in New Issue
Block a user