2014-06-27 15:52:34 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var Matchers = require('../Matchers'),
|
|
|
|
TestHelper = require('../TestHelper');
|
|
|
|
|
|
|
|
|
|
|
|
var fs = require('fs');
|
|
|
|
|
2014-08-01 05:16:59 +00:00
|
|
|
var Modeler = require('../../lib/Modeler');
|
2014-06-27 15:52:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
describe('scenario - simple modeling', function() {
|
|
|
|
|
|
|
|
|
|
|
|
var container;
|
|
|
|
|
|
|
|
beforeEach(function() {
|
|
|
|
container = jasmine.getEnv().getTestContainer();
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|