style(tests): use appropriate chai matcher
This commit is contained in:
parent
45486f2afe
commit
1538bd8a9e
|
@ -392,7 +392,7 @@ describe('import - Importer', function() {
|
|||
// when
|
||||
runImport(diagram, xml, function(err, warnings) {
|
||||
|
||||
expect(warnings.length).to.equal(0);
|
||||
expect(warnings).to.have.length(0);
|
||||
|
||||
done(err);
|
||||
});
|
||||
|
@ -410,7 +410,7 @@ describe('import - Importer', function() {
|
|||
var expectedMessage =
|
||||
'multiple DI elements defined for <bpmn:InclusiveGateway id="InclusiveGateway_1" />';
|
||||
|
||||
expect(warnings.length).to.equal(1);
|
||||
expect(warnings).to.have.length(1);
|
||||
expect(warnings[0].message).to.equal(expectedMessage);
|
||||
|
||||
done(err);
|
||||
|
@ -507,7 +507,7 @@ describe('import - Importer', function() {
|
|||
runImport(diagram, xml, function(err, warnings) {
|
||||
|
||||
// then
|
||||
expect(warnings.length).to.equal(0);
|
||||
expect(warnings).to.have.length(0);
|
||||
|
||||
expect(diagram.get('elementRegistry').get('_b467921a-ef7b-44c5-bf78-fd624c400d17')).to.exist;
|
||||
expect(diagram.get('elementRegistry').get('_c311cc87-677e-47a4-bdb1-8744c4ec3147')).to.exist;
|
||||
|
|
Loading…
Reference in New Issue