diff --git a/test/common/DateInput.test.js b/test/common/DateInput.test.js
index fe68ece9..a2df216e 100644
--- a/test/common/DateInput.test.js
+++ b/test/common/DateInput.test.js
@@ -2,6 +2,7 @@ import React from 'react';
import { shallow } from 'enzyme';
import DateInput from '../../src/common/DateInput';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
+import moment from 'moment';
describe('', () => {
let wrapped;
@@ -32,7 +33,7 @@ describe('', () => {
});
it('does not show calendar icon when input is clearable', () => {
- wrapped = createComponent({ isClearable: true, selected: '' });
+ wrapped = createComponent({ isClearable: true, selected: moment() });
expect(wrapped.find(FontAwesomeIcon)).toHaveLength(0);
});
});