Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dxvladislavvolkov committed Apr 11, 2017
1 parent 795c7ab commit 319ba55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/src/ui/form.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,16 @@ describe('DxForm', () => {
set: {
template: `
<dx-form [formData]="formData">
<dxi-item dataField="date"></dxi-item>
</dx-form>
`
}
});
let fixture = TestBed.createComponent(TestContainerComponent);
fixture.detectChanges();

this.formData.date = new Date(2017, 0, 1);

fixture.componentInstance.formData.date = new Date(2017, 0, 1);
fixture.detectChanges();

let formInstance = getWidget(fixture);
let dateBoxInstance = formInstance.getEditor('date');

Expand Down

0 comments on commit 319ba55

Please sign in to comment.