mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-16 04:41:02 +08:00

* use ES6 import / export * UTILS: export individual utilities * TESTS: localize TestHelper includes BREAKING CHANGE: * all utilities export independent functions * library sources got ported to ES6. You must now use a ES module bundler such as Browserify + babelify or Webpack to consume this library (or parts of it).
30 lines
490 B
JavaScript
30 lines
490 B
JavaScript
'use strict';
|
|
|
|
import Modeler from 'lib/Modeler';
|
|
|
|
import TestContainer from '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);
|
|
});
|
|
});
|
|
|
|
});
|