test: ensure that connectionDi exists
This commit is contained in:
parent
597c417dce
commit
5d30d576dc
|
@ -143,6 +143,8 @@ describe('features/modeling - append shape', function() {
|
|||
}),
|
||||
connectionDi = getDi(elementRegistry.get(connection.id));
|
||||
|
||||
// assume
|
||||
expect(connectionDi).to.exist;
|
||||
|
||||
// when
|
||||
commandStack.undo();
|
||||
|
@ -176,6 +178,9 @@ describe('features/modeling - append shape', function() {
|
|||
}),
|
||||
connectionDi = getDi(elementRegistry.get(connection.id));
|
||||
|
||||
// assume
|
||||
expect(connectionDi).to.exist;
|
||||
|
||||
// when
|
||||
commandStack.undo();
|
||||
|
||||
|
@ -211,6 +216,9 @@ describe('features/modeling - append shape', function() {
|
|||
}),
|
||||
connectionDi = getDi(elementRegistry.get(connection.id));
|
||||
|
||||
// assume
|
||||
expect(connectionDi).to.exist;
|
||||
|
||||
// when
|
||||
commandStack.undo();
|
||||
|
||||
|
@ -272,6 +280,9 @@ describe('features/modeling - append shape', function() {
|
|||
}),
|
||||
connectionDi = getDi(elementRegistry.get(connection.id));
|
||||
|
||||
// assume
|
||||
expect(connectionDi).to.exist;
|
||||
|
||||
// when
|
||||
commandStack.undo();
|
||||
commandStack.redo();
|
||||
|
|
Loading…
Reference in New Issue