Skip to content

Commit e75c6b0

Browse files
author
jfusco
committed
Cleaning up for tests
1 parent a004126 commit e75c6b0

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jest.disableAutomock();
55
import React from 'react';
66
import ReactDOM from 'react-dom';
77
import TestUtils from 'react-addons-test-utils';
8-
import Tags from '../js/Tags';
8+
import Tags from '../src/js/Tags';
99

1010
describe('Tags', () => {
1111
it('should render', () => {

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@
5656
"minimist": "~1.2.0"
5757
},
5858
"scripts": {
59-
"test": "jest --coverage --json"
59+
"test": "jest --coverage"
6060
},
6161
"jest": {
6262
"testDirectoryName": "__tests__",
63-
"rootDir": "src",
6463
"testPathIgnorePatterns": [
6564
"<rootDir>/node_modules/"
6665
],

src/js/Tag.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import React from 'react';
44

5-
const Tag = props => {
5+
const tag = props => {
66
const onRemoveClick = e => {
77
e.preventDefault();
88

@@ -29,9 +29,9 @@ const Tag = props => {
2929
);
3030
};
3131

32-
export default Tag;
32+
export default tag;
3333

34-
Tag.propTypes = {
34+
tag.propTypes = {
3535
name: React.PropTypes.string.isRequired,
3636
removeTag: React.PropTypes.func,
3737
readOnly: React.PropTypes.bool,

0 commit comments

Comments
 (0)