Skip to content
Snippets Groups Projects
Commit bae07fb8 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: Fix unit test on shared mutli select default value

parent 91431cd2
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,8 @@ import {SharedMultiSelectDefaultValuePresentational} from "./shared-multi-select
template: `
<form [formGroup]="mockForm">
<dlcm-shared-multi-select-default-value #multiSelectComponent
[formControl]="firstName"
[formControl]="firstNameFromControl"
[formControlDefault]="defaultFormControl"
[labelKey]="'label'"
[placeholder]="'placeholder'"
[list]="''"
......@@ -23,7 +24,8 @@ import {SharedMultiSelectDefaultValuePresentational} from "./shared-multi-select
export class MockSharedSearchableMultiSelectPresentational implements OnInit {
mockForm: FormGroup;
firstName: FormControl;
firstNameFromControl: FormControl;
defaultFormControl: FormControl;
@ViewChild("multiSelectComponent", {static: false})
readonly multiSelectComponent: SharedMultiSelectDefaultValuePresentational;
......@@ -32,9 +34,11 @@ export class MockSharedSearchableMultiSelectPresentational implements OnInit {
}
ngOnInit(): void {
this.firstName = new FormControl("");
this.firstNameFromControl = new FormControl("");
this.defaultFormControl = new FormControl("");
this.mockForm = this.fb.group({
firstName: this.firstName,
firstName: this.firstNameFromControl,
default: this.defaultFormControl,
});
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment