mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Fixed unit test for process
This commit is contained in:
parent
a315dcaa14
commit
a16b6d786b
@ -26,6 +26,7 @@ import { ProcessTestingModule } from '../testing/process.testing.module';
|
||||
import { HarnessLoader } from '@angular/cdk/testing';
|
||||
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
|
||||
import { MatProgressSpinnerHarness } from '@angular/material/progress-spinner/testing';
|
||||
import { AppDefinitionRepresentation } from '@alfresco/js-api';
|
||||
|
||||
describe('AppsListComponent', () => {
|
||||
let loader: HarnessLoader;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, fakeAsync, getTestBed } from '@angular/core/testing';
|
||||
import { Observable, of } from 'rxjs';
|
||||
import {
|
||||
FormService,
|
||||
@ -54,7 +54,7 @@ describe('RadioButtonsWidgetComponent', () => {
|
||||
let processDefinitionService: ProcessDefinitionService;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
getTestBed().configureTestingModule({
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
MatRadioModule,
|
||||
@ -62,17 +62,18 @@ describe('RadioButtonsWidgetComponent', () => {
|
||||
MatButtonModule,
|
||||
FormsModule,
|
||||
HttpClientTestingModule,
|
||||
MatIconModule
|
||||
MatIconModule,
|
||||
ErrorWidgetComponent
|
||||
],
|
||||
declarations: [RadioButtonsWidgetComponent, ErrorWidgetComponent],
|
||||
declarations: [RadioButtonsWidgetComponent],
|
||||
providers: [
|
||||
{ provide: TranslationService, useClass: TranslationMock },
|
||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||
{ provide: AppConfigService, useClass: AppConfigServiceMock }
|
||||
]
|
||||
});
|
||||
taskFormService = TestBed.inject(TaskFormService);
|
||||
processDefinitionService = TestBed.inject(ProcessDefinitionService);
|
||||
taskFormService = getTestBed().inject(TaskFormService);
|
||||
processDefinitionService = getTestBed().inject(ProcessDefinitionService);
|
||||
|
||||
formService = new FormService();
|
||||
widget = new RadioButtonsWidgetComponent(formService, taskFormService, processDefinitionService);
|
||||
@ -186,7 +187,7 @@ describe('RadioButtonsWidgetComponent', () => {
|
||||
];
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(RadioButtonsWidgetComponent);
|
||||
fixture = getTestBed().createComponent(RadioButtonsWidgetComponent);
|
||||
radioButtonWidget = fixture.componentInstance;
|
||||
element = fixture.nativeElement;
|
||||
loader = TestbedHarnessEnvironment.loader(fixture);
|
||||
|
@ -45,6 +45,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
||||
import { RestVariable } from '@alfresco/js-api';
|
||||
|
||||
describe('StartProcessComponent', () => {
|
||||
let appConfig: AppConfigService;
|
||||
|
@ -18,7 +18,6 @@
|
||||
import { CoreTestingModule, UserInfoMode } from '@alfresco/adf-core';
|
||||
import { fakeEcmUser, fakeEcmUserNoImage } from '@alfresco/adf-content-services';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { ProcessUserInfoComponent } from './process-user-info.component';
|
||||
import { HarnessLoader } from '@angular/cdk/testing';
|
||||
|
Loading…
x
Reference in New Issue
Block a user