From 88242a06245e1cedc239baaab3a8f869ddc0ac53 Mon Sep 17 00:00:00 2001 From: Vincent Bailleau Date: Wed, 27 Sep 2017 11:13:31 +0200 Subject: [PATCH] Fix tests injection --- tests/spec-bundle.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ] }, }); });