fix(project): correct library default export

This commit is contained in:
Nico Rehwaldt 2018-04-05 09:47:37 +02:00
parent 8dfdeb7c71
commit 6c9d37da12
2 changed files with 10 additions and 1 deletions

View File

@ -1 +1,3 @@
export default './lib/Viewer';
export {
default
} from './lib/Viewer';

View File

@ -2,6 +2,8 @@ import TestContainer from 'mocha-test-container-support';
import Diagram from 'diagram-js/lib/Diagram';
import ViewerDefaultExport from '../../';
import Viewer from 'lib/Viewer';
import inherits from 'inherits';
@ -980,4 +982,9 @@ describe('Viewer', function() {
});
it('default export', function() {
expect(ViewerDefaultExport).to.equal(Viewer);
});
});