Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Export modules
Browse files Browse the repository at this point in the history
Issue #1283
  • Loading branch information
pablosichert committed Nov 16, 2017
1 parent c684610 commit 0f6fca4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Shortcuts/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { default as ShortcutProvider } from './ShortcutProvider';
export { default as Shortcut } from './Shortcut';
export { default as generateHotkeys } from './generateHotkeys';
20 changes: 20 additions & 0 deletions src/components/Shortcuts/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* eslint-env mocha */
import { expect } from 'chai';
import { ShortcutProvider, Shortcut, generateHotkeys } from './index.js';
import _ShortcutProvider from './ShortcutProvider';
import _Shortcut from './Shortcut';
import _generateHotkeys from './generateHotkeys';

describe('Shortcuts/index.js', () => {
it('should export ShortcutProvider', () => {
expect(ShortcutProvider).to.equal(_ShortcutProvider);
});

it('should export Shortcut', () => {
expect(Shortcut).to.equal(_Shortcut);
});

it('should export generateHotkeys', () => {
expect(generateHotkeys).to.equal(_generateHotkeys);
});
});

0 comments on commit 0f6fca4

Please sign in to comment.