Fix unit test

This commit is contained in:
mauriziovitale84
2016-10-26 17:25:13 +01:00
parent 95025b4baf
commit ecfe3a8617
5 changed files with 145 additions and 34 deletions

View File

@@ -23,14 +23,16 @@ import { FormGroup, FormBuilder, FormControl } from '@angular/forms';
@Component({
moduleId: module.id,
selector: 'analytics-report-heat-map',
templateUrl: './analytics-report-heat-map.component.html',
styleUrls: ['./analytics-report-heat-map.component.css']
templateUrl: './analytics-report-heat-map.component.html'
})
export class AnalyticsReportHeatMapComponent implements OnInit {
@Input()
report: any;
@Output()
onSuccess = new EventEmitter();
@Output()
onError = new EventEmitter();
@@ -55,10 +57,7 @@ export class AnalyticsReportHeatMapComponent implements OnInit {
this.analyticsService.getMetricValues().subscribe(
(opts: any[]) => {
this.field.options = opts;
},
(err: any) => {
console.log(err);
this.onError.emit(err);
this.onSuccess.emit(opts);
}
);
}