diff --git a/src/components/Example/Example.js b/src/components/Example/Example.js index deb5155..883f579 100644 --- a/src/components/Example/Example.js +++ b/src/components/Example/Example.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import styles from './styles.css'; -export default class ExampleComponent extends Component { +export default class Example extends Component { static propTypes = { text: PropTypes.string }; diff --git a/src/styles.css b/src/components/Example/styles.css similarity index 100% rename from src/styles.css rename to src/components/Example/styles.css diff --git a/src/components/index.js b/src/components/index.js new file mode 100644 index 0000000..5415efe --- /dev/null +++ b/src/components/index.js @@ -0,0 +1 @@ +export { default as Example } from './Example'; diff --git a/src/index.js b/src/index.js index 5415efe..07635cb 100644 --- a/src/index.js +++ b/src/index.js @@ -1 +1 @@ -export { default as Example } from './Example'; +export * from './components'; diff --git a/src/test.js b/src/test.js index 9f93d82..0c23afb 100644 --- a/src/test.js +++ b/src/test.js @@ -1,7 +1,7 @@ -import ExampleComponent from '.'; +import { Example } from '.'; describe('ExampleComponent', () => { it('is truthy', () => { - expect(ExampleComponent).toBeTruthy(); + expect(Example).toBeTruthy(); }); });