File

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

Metadata

selector cx-org-form
template
<ng-content></ng-content>

Index

Properties
Inputs

Inputs

i18nRoot
Type : any

Properties

i18nRoot
Decorators :
@Input()
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 {}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""