GUI2 Archetype - corrected minor bug in Angular unit tests
Corrected
Change-Id: Id33cfc547a26962dd123e2794dad9ff8ea3b38c3
diff --git a/tools/package/archetypes/ui2/src/main/resources/archetype-resources/web/__artifactId__-gui/projects/__artifactId__-gui-lib/src/lib/__artifactId__/__artifactId__.component.spec.ts b/tools/package/archetypes/ui2/src/main/resources/archetype-resources/web/__artifactId__-gui/projects/__artifactId__-gui-lib/src/lib/__artifactId__/__artifactId__.component.spec.ts
index 86954c8..a30090e 100644
--- a/tools/package/archetypes/ui2/src/main/resources/archetype-resources/web/__artifactId__-gui/projects/__artifactId__-gui-lib/src/lib/__artifactId__/__artifactId__.component.spec.ts
+++ b/tools/package/archetypes/ui2/src/main/resources/archetype-resources/web/__artifactId__-gui/projects/__artifactId__-gui-lib/src/lib/__artifactId__/__artifactId__.component.spec.ts
@@ -22,6 +22,7 @@
import { of } from 'rxjs';
import { } from 'jasmine';
import {
+ Gui2FwLibModule,
FnService,
IconService,
IconComponent,
@@ -69,7 +70,13 @@
fs = new FnService(ar, logSpy, windowMock);
TestBed.configureTestingModule({
- imports: [BrowserAnimationsModule, CommonModule, FormsModule, RouterTestingModule],
+ imports: [
+ BrowserAnimationsModule,
+ CommonModule,
+ FormsModule,
+ RouterTestingModule,
+ Gui2FwLibModule
+ ],
declarations: [
${appNameTitle}Component,
WelcomeComponent
diff --git a/tools/package/archetypes/ui2/src/main/resources/archetype-resources/web/__artifactId__-gui/projects/__artifactId__-gui-lib/src/lib/welcome/welcome.component.spec.ts b/tools/package/archetypes/ui2/src/main/resources/archetype-resources/web/__artifactId__-gui/projects/__artifactId__-gui-lib/src/lib/welcome/welcome.component.spec.ts
index 103e29f..548377d 100644
--- a/tools/package/archetypes/ui2/src/main/resources/archetype-resources/web/__artifactId__-gui/projects/__artifactId__-gui-lib/src/lib/welcome/welcome.component.spec.ts
+++ b/tools/package/archetypes/ui2/src/main/resources/archetype-resources/web/__artifactId__-gui/projects/__artifactId__-gui-lib/src/lib/welcome/welcome.component.spec.ts
@@ -20,6 +20,7 @@
import { of } from 'rxjs';
import { } from 'jasmine';
import {
+ Gui2FwLibModule,
FnService,
IconService,
IconComponent,
@@ -67,7 +68,12 @@
fs = new FnService(ar, logSpy, windowMock);
TestBed.configureTestingModule({
- imports: [BrowserAnimationsModule, FormsModule, RouterTestingModule],
+ imports: [
+ BrowserAnimationsModule,
+ FormsModule,
+ RouterTestingModule,
+ Gui2FwLibModule
+ ],
declarations: [ WelcomeComponent ],
providers: [
{ provide: FnService, useValue: fs },