mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Ban xit and xdescribe use in the future (#4923)
* remove xit test and ban xit and xdescribe use in the future * remove xit test and ban xit and xdescribe use in the future * remove test excluded * remove consecutive blank line
This commit is contained in:
@@ -234,33 +234,6 @@ describe('SearchQueryBuilder', () => {
|
||||
expect(field.field).toBe('content.size');
|
||||
});
|
||||
|
||||
xit('should build query and raise an event on update', async () => {
|
||||
const builder = new SearchQueryBuilderService(buildConfig({}), null);
|
||||
const query = {};
|
||||
spyOn(builder, 'buildQuery').and.returnValue(query);
|
||||
|
||||
let eventArgs;
|
||||
builder.updated.subscribe((args) => eventArgs = args);
|
||||
|
||||
await builder.execute();
|
||||
expect(eventArgs).toBe(query);
|
||||
});
|
||||
|
||||
xit('should build query and raise an event on execute', async () => {
|
||||
const data = {};
|
||||
const api = jasmine.createSpyObj('api', ['search']);
|
||||
api.search.and.returnValue(data);
|
||||
|
||||
const builder = new SearchQueryBuilderService(buildConfig({}), api);
|
||||
spyOn(builder, 'buildQuery').and.returnValue({});
|
||||
|
||||
let eventArgs;
|
||||
builder.executed.subscribe((args) => eventArgs = args);
|
||||
|
||||
await builder.execute();
|
||||
expect(eventArgs).toBe(data);
|
||||
});
|
||||
|
||||
it('should require a query fragment to build query', () => {
|
||||
const config: SearchConfiguration = {
|
||||
categories: [
|
||||
|
Reference in New Issue
Block a user