mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-09 08:41:59 +00:00
04ca31fac9
This commit promisifies following APIs: BaseViewer#importXML BaseViewer#importDefinitions BaseViewer#open BaseViewer#saveXML BaseViewer#saveSVG Modeler#createDiagram Related to https://github.com/bpmn-io/bpmn-js/issues/812 BREAKING CHANGES: * Users are now expected to have Promises either by default or polyfilled as the APIs return a Promise now.
25 lines
439 B
JavaScript
25 lines
439 B
JavaScript
import Modeler from 'lib/Modeler';
|
|
|
|
import TestContainer from 'mocha-test-container-support';
|
|
|
|
describe('scenario - simple modeling', function() {
|
|
|
|
|
|
var container;
|
|
|
|
beforeEach(function() {
|
|
container = TestContainer.get(this);
|
|
});
|
|
|
|
|
|
it('should build process from start to end event', function() {
|
|
|
|
// given
|
|
var modeler = new Modeler({ container: container });
|
|
|
|
// when
|
|
return modeler.createDiagram();
|
|
});
|
|
|
|
});
|