Skip to content

Commit

Permalink
fix: example import/export hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
devfreddy committed Nov 21, 2019
1 parent 9cc9d5a commit ae80cbd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Example/Example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as Example } from './Example';
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as Example } from './Example';
export * from './components';
4 changes: 2 additions & 2 deletions src/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ExampleComponent from '.';
import { Example } from '.';

describe('ExampleComponent', () => {
it('is truthy', () => {
expect(ExampleComponent).toBeTruthy();
expect(Example).toBeTruthy();
});
});

0 comments on commit ae80cbd

Please sign in to comment.