Skip to content

Commit

Permalink
BDateTimePicker fixed error for validateConstraint.
Browse files Browse the repository at this point in the history
  • Loading branch information
emirhankudevi committed May 13, 2019
1 parent c96b95a commit 97a5316
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/components/src/DateTimePicker/DateTimePicker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { AppProvider } from '@kuveytturk/boa-base';
import DateTimePicker from './DateTimePicker';
import { context, createMount } from '@kuveytturk/boa-test/utils';
import { assert } from 'chai';

describe('<DateTimePicker />', () => {
let mount;
Expand Down Expand Up @@ -38,4 +39,12 @@ describe('<DateTimePicker />', () => {
.last()
.simulate('click');
});

it('should validateConstraint', () => {
const wrapper = mount(
<DateTimePicker context={context} />,
);
const dateInput = wrapper.instance();
assert.isTrue(dateInput.validateConstraint());
});
});

0 comments on commit 97a5316

Please sign in to comment.