30 lines
502 B
JavaScript
30 lines
502 B
JavaScript
'use strict';
|
|
|
|
var Modeler = require('../../lib/Modeler');
|
|
|
|
var TestContainer = require('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(done) {
|
|
|
|
// given
|
|
var modeler = new Modeler({ container: container });
|
|
|
|
// when
|
|
modeler.createDiagram(function(err) {
|
|
|
|
done(err);
|
|
});
|
|
});
|
|
|
|
});
|