dependencies dependencies cluster_FormTestingModule cluster_FormTestingModule_declarations cluster_FormTestingModule_exports MockFormComponent MockFormComponent FormTestingModule FormTestingModule MockFormComponent->FormTestingModule MockFormComponent MockFormComponent FormTestingModule->MockFormComponent

File

feature-libs/organization/administration/components/shared/form/form.testing.module.ts

Declarations

import { Component, Input, NgModule } from '@angular/core';
import { CurrentItemService } from '../current-item.service';
import { FormService } from './form.service';
import createSpy = jasmine.createSpy;

@Component({
  selector: 'cx-org-form',
  template: '<ng-content></ng-content>',
})
class MockFormComponent {
  @Input() i18nRoot;
}

export class MockBudgetFormService {}

class MockCurrentItemService {}
class MockFormService {
  getForm = createSpy('getForm');
}

@NgModule({
  declarations: [MockFormComponent],
  exports: [MockFormComponent],
  providers: [
    {
      provide: CurrentItemService,
      useExisting: MockCurrentItemService,
    },
    {
      provide: FormService,
      useExisting: MockFormService,
    },
  ],
})
export class FormTestingModule {}

result-matching ""

    No results matching ""