This commit is contained in:
picklesrus 2020-12-14 20:07:03 -05:00
parent 2f2e95f3e2
commit 90ed44d6a8

View file

@ -3,7 +3,6 @@ const {shallowWithIntl} = require('../../helpers/intl-helpers.jsx');
import {mountWithIntl} from '../../helpers/intl-helpers.jsx'; import {mountWithIntl} from '../../helpers/intl-helpers.jsx';
const ComposeComment = require('../../../src/views/preview/comment/compose-comment.jsx'); const ComposeComment = require('../../../src/views/preview/comment/compose-comment.jsx');
import configureStore from 'redux-mock-store'; import configureStore from 'redux-mock-store';
const PropTypes = require('prop-types');
describe('Compose Comment test', () => { describe('Compose Comment test', () => {
const mockStore = configureStore(); const mockStore = configureStore();
@ -185,7 +184,7 @@ describe('Compose Comment test', () => {
<ComposeComment <ComposeComment
{...defaultProps()} {...defaultProps()}
/> />
, {context: {store}} , {context: {store}}
); );
// set state on the ComposeComment component, not the wrapper // set state on the ComposeComment component, not the wrapper
const commentInstance = component.find('ComposeComment').instance(); const commentInstance = component.find('ComposeComment').instance();