2018-04-02 19:01:53 +00:00
|
|
|
import Modeler from 'lib/Modeler';
|
2014-06-27 15:52:34 +00:00
|
|
|
|
2018-04-02 19:01:53 +00:00
|
|
|
import TestContainer from 'mocha-test-container-support';
|
2014-06-27 15:52:34 +00:00
|
|
|
|
|
|
|
describe('scenario - simple modeling', function() {
|
|
|
|
|
|
|
|
|
|
|
|
var container;
|
|
|
|
|
|
|
|
beforeEach(function() {
|
2015-07-15 15:22:19 +00:00
|
|
|
container = TestContainer.get(this);
|
2014-06-27 15:52:34 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
2020-04-29 09:02:42 +00:00
|
|
|
it('should build process from start to end event', function() {
|
2014-06-27 15:52:34 +00:00
|
|
|
|
|
|
|
// given
|
|
|
|
var modeler = new Modeler({ container: container });
|
|
|
|
|
|
|
|
// when
|
2020-04-29 09:02:42 +00:00
|
|
|
return modeler.createDiagram();
|
2014-06-27 15:52:34 +00:00
|
|
|
});
|
|
|
|
|
2015-07-15 15:22:19 +00:00
|
|
|
});
|