[AAE-0000] - migration to ng19 with standalone schematics

This commit is contained in:
VitoAlbano
2025-05-17 00:03:00 +01:00
parent 9c6a1901c6
commit 41a1948996
33 changed files with 7396 additions and 18364 deletions

View File

@@ -27,7 +27,8 @@ import { UnitTestingUtils } from '../../../../src/lib/testing/unit-testing-utils
<div>
<div id="underFeatureFlag" *adfForFeatures="features"></div>
</div>
`
`,
imports: [CommonModule, FeaturesDirective]
})
class TestWithEnabledFlagComponent {
features = 'feature1';
@@ -37,7 +38,8 @@ class TestWithEnabledFlagComponent {
<div>
<div id="underFeatureFlag" *adfForFeatures="features"></div>
</div>
`
`,
imports: [CommonModule, FeaturesDirective]
})
class TestWithDisabledFlagComponent {
features = ['feature1', 'feature2'];
@@ -50,7 +52,7 @@ describe('FeaturesDirective', () => {
beforeEach(async () => {
TestBed.configureTestingModule({
imports: [CommonModule, FeaturesDirective],
imports: [CommonModule, FeaturesDirective, TestWithEnabledFlagComponent, TestWithDisabledFlagComponent],
providers: [
provideMockFeatureFlags({
feature1: true,
@@ -58,8 +60,7 @@ describe('FeaturesDirective', () => {
feature3: true
}),
FeaturesDirective
],
declarations: [TestWithEnabledFlagComponent, TestWithDisabledFlagComponent]
]
});
enabledFixture = TestBed.createComponent(TestWithEnabledFlagComponent);
enabledFixture.detectChanges();

View File

@@ -27,7 +27,8 @@ import { UnitTestingUtils } from '../../../../src/lib/testing/unit-testing-utils
<div>
<div id="underFeatureFlag" *adfNotForFeatures="features"></div>
</div>
`
`,
imports: [CommonModule, NotFeaturesDirective]
})
class TestWithEnabledFlagComponent {
features = ['feature1', 'feature3'];
@@ -38,7 +39,8 @@ class TestWithEnabledFlagComponent {
<div>
<div id="underFeatureFlag" *adfNotForFeatures="features"></div>
</div>
`
`,
imports: [CommonModule, NotFeaturesDirective]
})
class TestWithDisabledFlagComponent {
features = 'feature2';
@@ -51,7 +53,7 @@ describe('NotFeaturesDirective', () => {
beforeEach(async () => {
TestBed.configureTestingModule({
imports: [CommonModule, NotFeaturesDirective],
imports: [CommonModule, NotFeaturesDirective, TestWithEnabledFlagComponent, TestWithDisabledFlagComponent],
providers: [
provideMockFeatureFlags({
feature1: true,
@@ -59,8 +61,7 @@ describe('NotFeaturesDirective', () => {
feature3: true
}),
NotFeaturesDirective
],
declarations: [TestWithEnabledFlagComponent, TestWithDisabledFlagComponent]
]
});
enabledFixture = TestBed.createComponent(TestWithEnabledFlagComponent);
enabledFixture.detectChanges();