test(Viewer): split config -> container handling into own describe

This commit is contained in:
Nico Rehwaldt 2019-04-12 11:57:57 +02:00 committed by Nico Rehwaldt
parent a78f8037c7
commit b1ee678fe3
1 changed files with 26 additions and 19 deletions

View File

@ -589,7 +589,10 @@ describe('Viewer', function() {
}); });
it('should attach the viewer to the given parent', function(done) {
describe('container', function() {
it('should attach if provided', function(done) {
var xml = require('../fixtures/bpmn/simple.bpmn'); var xml = require('../fixtures/bpmn/simple.bpmn');
@ -603,7 +606,8 @@ describe('Viewer', function() {
}); });
}); });
it('should not attach the viewer automatically if no parent was given', function(done) {
it('should not attach if absent', function(done) {
var xml = require('../fixtures/bpmn/simple.bpmn'); var xml = require('../fixtures/bpmn/simple.bpmn');
@ -616,6 +620,9 @@ describe('Viewer', function() {
done(err, warnings); done(err, warnings);
}); });
}); });
});
}); });