bug/825 Fix error message in test report due to wrong date initialization

This commit is contained in:
Martin Rojas Miguel Angel 2019-03-08 09:35:33 +01:00 committed by Holger Hagen
parent 979f22da2e
commit f21024cc9a
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ describe('DatePickerComponent', () => {
providers: [BsDatepickerConfig, ComponentLoaderFactory, PositioningService,
BsLocaleService]
})
.compileComponents();
.compileComponents();
}));
beforeEach(() => {

View File

@ -15,7 +15,7 @@ export class DatePickerComponent implements OnInit {
valueDate: Date;
ngOnInit(): void {
this.valueDate = new Date(this.value);
this.valueDate = this.value ? new Date(this.value) : new Date();
}
dateChange(newValue: Date) {

View File

@ -4,7 +4,7 @@ import { QueryParametersModel } from 'app/models/query-parameters';
describe('TaskanaQueryParameters', () => {
beforeAll(()=>{
beforeAll(() => {
TaskanaQueryParameters.page = 1;
TaskanaQueryParameters.pageSize = 9;
})