Add component tests #8

Merged
manuel merged 11 commits from feature/collapsible-intermediate-input into develop 2018-09-07 12:49:20 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 635b84fbd7 - Show all commits

View file

@ -1,6 +1,6 @@
<div [ngClass]="{selectwrapper: true, error: step.error}"> <div [ngClass]="{selectwrapper: true, error: step.error}">
<div class="arrow_box"> <div class="arrow_box">
<select class="select" (change)="convert(step, $event)"> <select class="select" (change)="convert($event)">
<option id="undefined">Select conversion ...</option> <option id="undefined">Select conversion ...</option>
<option class="option" *ngFor="let c of converters" id="{{c.getId()}}">{{c.getDisplayname()}} <option class="option" *ngFor="let c of converters" id="{{c.getId()}}">{{c.getDisplayname()}}
</option> </option>

View file

@ -19,9 +19,9 @@ export class ConverterSelectorComponent implements OnInit {
constructor(private converterRegistryService: ConverterRegistryService) { constructor(private converterRegistryService: ConverterRegistryService) {
} }
convert(step: Step, $event: any): void { convert($event: any): void {
step.selectedConverter = this.converterRegistryService.getConverter($event.target.selectedOptions[0].id); this.step.selectedConverter = this.converterRegistryService.getConverter($event.target.selectedOptions[0].id);
this.textInput.update(step); this.textInput.update(this.step);
} }
ngOnInit() { ngOnInit() {