Skip to content

Commit

Permalink
Update import/export syntax to ES6
Browse files Browse the repository at this point in the history
  • Loading branch information
Niky Morgan committed Apr 4, 2017
1 parent 9104865 commit 902b582
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Product = require('./components/Product');
import Product from './components/Product';

ReactDOM.render(
<Product name="Dunder Mifflin" producer="PaperCo" color="white" weight={210} />,
Expand Down
8 changes: 4 additions & 4 deletions test/index-test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const React = require('react');
const { shallow } = require('enzyme');
const sinon = require('sinon');
import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';

const Product = require('../components/Product');
import Product from '../components/Product';

const ALL_PROPS_VALID = {
name: 'Some product',
Expand Down

0 comments on commit 902b582

Please sign in to comment.