mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-11 17:44:12 +00:00
test(Viewer): split config -> container handling into own describe
This commit is contained in:
parent
a78f8037c7
commit
b1ee678fe3
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -616,6 +620,9 @@ describe('Viewer', function() {
|
||||
done(err, warnings);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user