mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 05:10:20 +03:00
Fix tests injection
This commit is contained in:
parent
f212145d83
commit
88242a0624
|
@ -52,14 +52,13 @@ beforeEach(function() {
|
|||
services.SearchService,
|
||||
{ provide: sharedComponents.LazyTasksService, useClass: sharedComponents.LazyTasksServiceSync },
|
||||
//{ provide: ErrorHandler, useClass: forwardRef(function() {return services.CustomErrorHandler}) },
|
||||
{ provide: services.COMPONENT_PARSER_ALLOWED, useValue: { 'security-definitions': components.SecurityDefinitions }},
|
||||
{ provide: services.COMPONENT_PARSER_ALLOWED, useValue: { 'x-permissions': components.XPermissions }}
|
||||
{ provide: services.COMPONENT_PARSER_ALLOWED, useValue: { 'security-definitions': components.SecurityDefinitions, 'x-permissions': components.XPermissions }},
|
||||
],
|
||||
declarations: [REDOC_PIPES, REDOC_DIRECTIVES, REDOC_COMMON_DIRECTIVES]
|
||||
});
|
||||
TestBed.overrideModule(BrowserDynamicTestingModule, {
|
||||
set: {
|
||||
entryComponents: [ sharedComponents.DynamicNg2Wrapper, components.SecurityDefinitions ]
|
||||
entryComponents: [ sharedComponents.DynamicNg2Wrapper, components.SecurityDefinitions, components.XPermissions ]
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user