[ADF-4707] add properties in node selector search (#4878)

* add properties in node selector search

* fix test
This commit is contained in:
Eugenio Romano
2019-06-25 15:37:24 +01:00
committed by GitHub
parent d531a022d0
commit 90c403ae9e
3 changed files with 4 additions and 3 deletions

View File

@@ -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', () => {