test(Modeler): make sure we can bootstrap without options

This commit is contained in:
Nico Rehwaldt 2015-05-04 14:57:32 +02:00
parent e6a51f4181
commit 877cfcca78
1 changed files with 19 additions and 0 deletions

View File

@ -69,6 +69,25 @@ describe('Modeler', function() {
});
describe('defaults', function() {
it('should use <body> as default parent', function(done) {
var xml = require('../fixtures/bpmn/simple.bpmn');
var modeler = new Modeler();
modeler.importXML(xml, function(err, warnings) {
expect(modeler.container.parentNode).toBe(document.body);
done(err, warnings);
});
});
});
describe('overlay support', function() {
it('should allow to add overlays', function(done) {