bpmn-js/test/spec/BaseModelerSpec.js
Nico Rehwaldt bb94b206a7 feat(project): provide Base{Viewer|Modeler} distributions
This allows users to use the viewer / modeler features without
inheriting our modules.

Related to #258
2019-12-11 13:28:35 +01:00

21 lines
431 B
JavaScript

import BaseModeler from 'lib/BaseModeler';
import BaseViewer from 'lib/BaseViewer';
describe('BaseModeler', function() {
it('should instantiate', function() {
// when
var instance = new BaseModeler();
// then
expect(instance.importXML).to.exist;
expect(instance.saveXML).to.exist;
expect(instance instanceof BaseModeler).to.be.true;
expect(instance instanceof BaseViewer).to.be.true;
});
});