2014-06-27 15:52:34 +00:00
|
|
|
'use strict';
|
|
|
|
|
2014-08-01 05:16:59 +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
|
|
|
|
modeler.createDiagram(function(err) {
|
|
|
|
|
|
|
|
done(err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2015-07-15 15:22:19 +00:00
|
|
|
});
|