Skip to content

Commit

Permalink
test: migrate to async APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Jan 9, 2024
1 parent 17be9a6 commit 34bba21
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions test/spec/ModelerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,9 @@ describe('modeler / nyan version', function() {

modeler.attachTo('body');

modeler.importXML(diagram, function(err) {
if (err) {
done(err);
}

modeler.invoke(fn);

done();
});

modeler.importXML(diagram).then(
() => modeler.invoke(fn)
).then(done, done);
};
}

Expand Down

0 comments on commit 34bba21

Please sign in to comment.