2014-06-27 15:52:34 +00:00
|
|
|
'use strict';
|
|
|
|
|
2018-01-24 10:41:21 +00:00
|
|
|
var Modeler = require('lib/Modeler');
|
2014-06-27 15:52:34 +00:00
|
|
|
|
2015-07-15 15:22:19 +00:00
|
|
|
var TestContainer = require('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
|
|
|
});
|