mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-8001] hide under the feature flag
This commit is contained in:
+7
-1
@@ -21,6 +21,8 @@ import { ProcessServiceCloudTestingModule } from '../../../../../testing/process
|
||||
import { of } from 'rxjs';
|
||||
import { fakeNodeWithProperties } from '../../../../mocks/attach-file-cloud-widget.mock';
|
||||
import { NodesApiService, BasicPropertiesService } from '@alfresco/adf-content-services';
|
||||
import { provideMockFeatureFlags } from '@alfresco/adf-core/feature-flags';
|
||||
import { CONTENT_ENRICHMENT } from '@alfresco/adf-core';
|
||||
|
||||
describe('PropertiesViewerWidgetComponent', () => {
|
||||
let component: PropertiesViewerWrapperComponent;
|
||||
@@ -30,7 +32,11 @@ describe('PropertiesViewerWidgetComponent', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ProcessServiceCloudTestingModule],
|
||||
providers: [NodesApiService, { provide: BasicPropertiesService, useValue: { getProperties: () => [] } }]
|
||||
providers: [
|
||||
NodesApiService,
|
||||
{ provide: BasicPropertiesService, useValue: { getProperties: () => [] } },
|
||||
provideMockFeatureFlags({[CONTENT_ENRICHMENT.EXPERIENCE_INSIGHT]: false})
|
||||
]
|
||||
});
|
||||
fixture = TestBed.createComponent(PropertiesViewerWrapperComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
||||
+7
-2
@@ -16,13 +16,14 @@
|
||||
*/
|
||||
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { FormFieldModel, FormModel } from '@alfresco/adf-core';
|
||||
import { CONTENT_ENRICHMENT, FormFieldModel, FormModel } from '@alfresco/adf-core';
|
||||
import { PropertiesViewerWidgetComponent } from './properties-viewer.widget';
|
||||
import { ProcessServiceCloudTestingModule } from '../../../../testing/process-service-cloud.testing.module';
|
||||
import { fakeNodeWithProperties } from '../../../mocks/attach-file-cloud-widget.mock';
|
||||
import { PropertiesViewerWrapperComponent } from './properties-viewer-wrapper/properties-viewer-wrapper.component';
|
||||
import { NodesApiService, BasicPropertiesService } from '@alfresco/adf-content-services';
|
||||
import { of } from 'rxjs';
|
||||
import { provideMockFeatureFlags } from '@alfresco/adf-core/feature-flags';
|
||||
|
||||
describe('PropertiesViewerWidgetComponent', () => {
|
||||
let widget: PropertiesViewerWidgetComponent;
|
||||
@@ -49,7 +50,11 @@ describe('PropertiesViewerWidgetComponent', () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ProcessServiceCloudTestingModule],
|
||||
declarations: [PropertiesViewerWrapperComponent],
|
||||
providers: [NodesApiService, { provide: BasicPropertiesService, useValue: { getProperties: () => [] } }]
|
||||
providers: [
|
||||
NodesApiService,
|
||||
{ provide: BasicPropertiesService, useValue: { getProperties: () => [] } },
|
||||
provideMockFeatureFlags({[CONTENT_ENRICHMENT.EXPERIENCE_INSIGHT]: false})
|
||||
]
|
||||
});
|
||||
fixture = TestBed.createComponent(PropertiesViewerWidgetComponent);
|
||||
nodesApiService = TestBed.inject(NodesApiService);
|
||||
|
||||
Reference in New Issue
Block a user