Skip to content

Commit

Permalink
test: log XML outside of editing cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed May 29, 2024
1 parent 80b22ef commit 542512b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/helper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ export function enableLogging(modeler, force) {
var saveXML = logConfigured('save-xml', force);

saveXML && modeler.on('commandStack.changed', function() {
modeler.saveXML({ format: true }).then(function(result) {
console.log(result.xml);
});
Promise.resolve()
.then(() => modeler.saveXML({ format: true }))
.then((result) => console.log(result.xml));
});
}

Expand Down

0 comments on commit 542512b

Please sign in to comment.