From 902b582b22a8e7ce79bac0609df27a2cac249401 Mon Sep 17 00:00:00 2001 From: Niky Morgan Date: Tue, 4 Apr 2017 11:19:53 -0400 Subject: [PATCH] Update import/export syntax to ES6 --- index.js | 2 +- test/index-test.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 314b050..b4c083e 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -const Product = require('./components/Product'); +import Product from './components/Product'; ReactDOM.render( , diff --git a/test/index-test.js b/test/index-test.js index a7db01a..f1acdd0 100644 --- a/test/index-test.js +++ b/test/index-test.js @@ -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',