test(Viewer): correctly call done

This commit is contained in:
Maciej Barelkowski 2019-06-27 17:13:19 +02:00 committed by Nico Rehwaldt
parent 42a89ca960
commit ff45cab7c1
1 changed files with 3 additions and 3 deletions

View File

@ -743,7 +743,7 @@ describe('Viewer', function() {
// then
viewer.on('import.done', function(event) {
done();
done(event.error);
});
});
@ -754,11 +754,11 @@ describe('Viewer', function() {
var viewer = new Viewer({ container: container });
// when
viewer.importXML(multipleXML, 'Diagram_2');
viewer.importXML(multipleXML, 'BpmnDiagram_2');
// then
viewer.on('import.done', function(event) {
done();
done(event.error);
});
});