Skip to content

Commit

Permalink
Cleaning up for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jfusco committed Jul 18, 2016
1 parent a004126 commit e75c6b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/Tags-test.js → __tests__/Tags-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jest.disableAutomock();
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import Tags from '../js/Tags';
import Tags from '../src/js/Tags';

describe('Tags', () => {
it('should render', () => {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@
"minimist": "~1.2.0"
},
"scripts": {
"test": "jest --coverage --json"
"test": "jest --coverage"
},
"jest": {
"testDirectoryName": "__tests__",
"rootDir": "src",
"testPathIgnorePatterns": [
"<rootDir>/node_modules/"
],
Expand Down
6 changes: 3 additions & 3 deletions src/js/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React from 'react';

const Tag = props => {
const tag = props => {
const onRemoveClick = e => {
e.preventDefault();

Expand All @@ -29,9 +29,9 @@ const Tag = props => {
);
};

export default Tag;
export default tag;

Tag.propTypes = {
tag.propTypes = {
name: React.PropTypes.string.isRequired,
removeTag: React.PropTypes.func,
readOnly: React.PropTypes.bool,
Expand Down

0 comments on commit e75c6b0

Please sign in to comment.