mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-0000] - migration to ng19 with standalone schematics
This commit is contained in:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user