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
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('should build process from start to end event', function(done) {
|
|
|
|
|
|
|
|
// given
|
|
|
|
var modeler = new Modeler({ container: container });
|
|
|
|
|
|
|
|
// when
|
2015-11-11 10:31:58 +00:00
|
|
|
modeler.createDiagram(function(err) {
|
2014-06-27 15:52:34 +00:00
|
|
|
|
|
|
|
done(err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2015-07-15 15:22:19 +00:00
|
|
|
});
|