fix(project): correct library default export
This commit is contained in:
parent
8dfdeb7c71
commit
6c9d37da12
4
index.js
4
index.js
|
@ -1 +1,3 @@
|
|||
export default './lib/Viewer';
|
||||
export {
|
||||
default
|
||||
} from './lib/Viewer';
|
|
@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue