mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1723] LogService configuration (#2496)
* log levels implementation * documentation and test * remove logservieMock * add logLevel in app config file * remove semicolons * fix pagination test * fix test form * silent test in production config * fix test
This commit is contained in:
committed by
Denys Vuika
parent
de8fa02ef7
commit
8b0047337f
@@ -17,7 +17,6 @@
|
||||
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { CoreModule, LogService } from 'ng2-alfresco-core';
|
||||
import { LogServiceMock } from 'ng2-alfresco-core';
|
||||
import { ActivitiAlfrescoContentService } from '../../../services/activiti-alfresco.service';
|
||||
import { WidgetVisibilityService } from '../../../services/widget-visibility.service';
|
||||
import { MaterialModule } from '../../material.module';
|
||||
@@ -94,7 +93,7 @@ describe('DynamicTableWidgetComponent', () => {
|
||||
TextEditorComponent, ErrorWidgetComponent],
|
||||
providers: [
|
||||
FormService,
|
||||
{provide: LogService, useClass: LogServiceMock},
|
||||
LogService,
|
||||
ActivitiAlfrescoContentService,
|
||||
EcmModelService,
|
||||
WidgetVisibilityService
|
||||
@@ -285,7 +284,6 @@ describe('DynamicTableWidgetComponent', () => {
|
||||
widget.onSaveChanges();
|
||||
|
||||
expect(widget.editMode).toBeFalsy();
|
||||
expect(logService.error).toHaveBeenCalledWith(widget.ERROR_MODEL_NOT_FOUND);
|
||||
});
|
||||
|
||||
it('should cancel changes', () => {
|
||||
|
Reference in New Issue
Block a user