Skip to content

Commit

Permalink
change cjs to es6 in demo&tests
Browse files Browse the repository at this point in the history
  • Loading branch information
buzhou committed Oct 30, 2017
1 parent 1ad5d24 commit 469352a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions demo/PopoverDemo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* All rights reserved.
*/

const Button = require('uxcore-button');
const React = require('react');
import Button from 'uxcore-button';
import React from 'react';

const Popover = require('../src');
import Popover from '../src';

const test = () => {
alert('test'); // eslint-disable-line no-alert
Expand Down
6 changes: 3 additions & 3 deletions demo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* All rights reserved.
*/

const React = require('react');
const ReactDOM = require('react-dom');
import React from 'react';
import ReactDOM from 'react-dom';

const Demo = require('./PopoverDemo');
import Demo from './PopoverDemo';

ReactDOM.render(<Demo />, document.getElementById('UXCoreDemo'));
3 changes: 1 addition & 2 deletions tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
* only require other specs here
*/

const req = require.context('.', false, /\.spec\.js$/);
req.keys().forEach(req);
import spec from './Popover.spec';

0 comments on commit 469352a

Please sign in to comment.