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

This commit is contained in:
Nico Rehwaldt 2015-05-04 14:54:56 +02:00
parent 6b23d181d5
commit e6a51f4181
1 changed files with 19 additions and 0 deletions

View File

@ -62,6 +62,25 @@ describe('Viewer', function() {
});
describe('defaults', function() {
it('should use <body> as default parent', function(done) {
var xml = require('../fixtures/bpmn/simple.bpmn');
var viewer = new Viewer();
viewer.importXML(xml, function(err, warnings) {
expect(viewer.container.parentNode).toBe(document.body);
done(err, warnings);
});
});
});
describe('import events', function() {
it('should fire <import.*> events', function(done) {