Skip to content

Commit

Permalink
[Tests] move helpers in to test/_helpers dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 12, 2017
1 parent 22f368f commit 4464a17
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion karma.conf.js
Expand Up @@ -63,7 +63,7 @@ module.exports = function karma(config) {
],

exclude: [
'test/_*.{jsx,js}',
'test/_helpers/index.jsx',
],

browsers: [
Expand Down
2 changes: 1 addition & 1 deletion test/ReactWrapper-spec.jsx
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
import { expect } from 'chai';
import sinon from 'sinon';
import { batchedUpdates } from '../src/react-compat';
import { createClass } from './react-compat';
import { createClass } from './_helpers/react-compat';

import {
describeWithDOM,
Expand Down
2 changes: 1 addition & 1 deletion test/ShallowWrapper-spec.jsx
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { expect } from 'chai';
import sinon from 'sinon';

import { createClass } from './react-compat';
import { createClass } from './_helpers/react-compat';
import { shallow, render, ShallowWrapper } from '../src/';
import { describeIf, itIf, itWithData, generateEmptyRenderData } from './_helpers';
import { ITERATOR_SYMBOL, withSetStateAllowed } from '../src/Utils';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/react-compat.js → test/_helpers/react-compat.js
Expand Up @@ -4,7 +4,7 @@
import/prefer-default-export: 0,
*/

import { REACT155 } from '../src/version';
import { REACT155 } from '../../src/version';

let createClass;

Expand Down
2 changes: 1 addition & 1 deletion test/staticRender-spec.jsx
Expand Up @@ -4,7 +4,7 @@ import { expect } from 'chai';
import { describeWithDOM, describeIf } from './_helpers';
import { render } from '../src/';
import { REACT013 } from '../src/version';
import { createClass } from './react-compat';
import { createClass } from './_helpers/react-compat';

describeWithDOM('render', () => {
describeIf(!REACT013, 'context', () => {
Expand Down

0 comments on commit 4464a17

Please sign in to comment.