Skip to content

Commit

Permalink
Fix test file names (#15)
Browse files Browse the repository at this point in the history
* Remove old enzyme setup file.

* Add .test to YesNo and AddDeleteButtons test files.
  • Loading branch information
cjcenizal authored and nreese committed Dec 7, 2017
1 parent 4dd65d1 commit 2a04664
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import AddDeleteButtons from '../add_delete_buttons';

describe('<AddDeleteButtons />', () => {
import AddDeleteButtons from './add_delete_buttons';

describe('AddDeleteButtons', () => {
it('calls onAdd={handleAdd}', () => {
const handleAdd = sinon.spy();
const wrapper = shallow(
Expand Down Expand Up @@ -61,5 +60,4 @@ describe('<AddDeleteButtons />', () => {
);
expect(wrapper.find({ text: 'Clone' })).to.have.length(0);
});

});
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import YesNo from '../yes_no';

describe('<YesNo />', () => {
import YesNo from './yes_no';

describe('YesNo', () => {
it('call onChange={handleChange} on yes', () => {
const handleChange = sinon.spy();
const wrapper = shallow(
Expand All @@ -29,5 +28,4 @@ describe('<YesNo />', () => {
test: 0
});
});

});
4 changes: 0 additions & 4 deletions src/jest/setup/enzyme.js

This file was deleted.

0 comments on commit 2a04664

Please sign in to comment.