diff --git a/tests/spec-bundle.js b/tests/spec-bundle.js index bfc3130b..1806b358 100644 --- a/tests/spec-bundle.js +++ b/tests/spec-bundle.js @@ -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 ] }, }); });