mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2477] message bus in log service (#3063)
* add message bus in log service to allow third pat integrations * fix test after review
This commit is contained in:
@@ -143,6 +143,18 @@ describe('Log Service', () => {
|
||||
expect(console.error).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('message Observable', (done) => {
|
||||
appConfigService.config['logLevel'] = 'trace';
|
||||
providesLogComponent = TestBed.createComponent(ProvidesLogComponent);
|
||||
|
||||
providesLogComponent.componentInstance.logService.onMessage.subscribe((message) => {
|
||||
done();
|
||||
});
|
||||
|
||||
providesLogComponent.componentInstance.log();
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@Component({
|
||||
|
Reference in New Issue
Block a user