bug/825 Fix error message in test report due to wrong date initialization
This commit is contained in:
parent
3f493e2330
commit
797e409485
|
|
@ -14,7 +14,7 @@ describe('DatePickerComponent', () => {
|
||||||
providers: [BsDatepickerConfig, ComponentLoaderFactory, PositioningService,
|
providers: [BsDatepickerConfig, ComponentLoaderFactory, PositioningService,
|
||||||
BsLocaleService]
|
BsLocaleService]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export class DatePickerComponent implements OnInit {
|
||||||
valueDate: Date;
|
valueDate: Date;
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.valueDate = new Date(this.value);
|
this.valueDate = this.value ? new Date(this.value) : new Date();
|
||||||
}
|
}
|
||||||
|
|
||||||
dateChange(newValue: Date) {
|
dateChange(newValue: Date) {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { QueryParametersModel } from 'app/models/query-parameters';
|
||||||
|
|
||||||
describe('TaskanaQueryParameters', () => {
|
describe('TaskanaQueryParameters', () => {
|
||||||
|
|
||||||
beforeAll(()=>{
|
beforeAll(() => {
|
||||||
TaskanaQueryParameters.page = 1;
|
TaskanaQueryParameters.page = 1;
|
||||||
TaskanaQueryParameters.pageSize = 9;
|
TaskanaQueryParameters.pageSize = 9;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue