We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9270537 commit ccd13adCopy full SHA for ccd13ad
src/__tests__/index.spec.js
@@ -0,0 +1,11 @@
1
+/* global describe, it */
2
+import React from 'react';
3
+import { shallow } from 'enzyme';
4
+import Highlight from '../index';
5
+import { expect } from 'chai';
6
+
7
+describe('index.js', () => {
8
+ it('exports default component', () => {
9
+ expect(() => shallow(<Highlight>test</Highlight>)).to.not.throw(Error);
10
+ });
11
+});
src/index.js
@@ -1,2 +1,2 @@
/* @flow */
-export { default as Highlight } from './components/Highlight';
+export { default } from './components/Highlight';
0 commit comments