mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-25 15:15:30 +00:00
test(Modeler): make sure we can bootstrap without options
This commit is contained in:
parent
e6a51f4181
commit
877cfcca78
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user