mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-17 11:26:42 +00:00
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));
|
connectionDi = getDi(elementRegistry.get(connection.id));
|
||||||
|
|
||||||
|
// assume
|
||||||
|
expect(connectionDi).to.exist;
|
||||||
|
|
||||||
// when
|
// when
|
||||||
commandStack.undo();
|
commandStack.undo();
|
||||||
@ -176,6 +178,9 @@ describe('features/modeling - append shape', function() {
|
|||||||
}),
|
}),
|
||||||
connectionDi = getDi(elementRegistry.get(connection.id));
|
connectionDi = getDi(elementRegistry.get(connection.id));
|
||||||
|
|
||||||
|
// assume
|
||||||
|
expect(connectionDi).to.exist;
|
||||||
|
|
||||||
// when
|
// when
|
||||||
commandStack.undo();
|
commandStack.undo();
|
||||||
|
|
||||||
@ -211,6 +216,9 @@ describe('features/modeling - append shape', function() {
|
|||||||
}),
|
}),
|
||||||
connectionDi = getDi(elementRegistry.get(connection.id));
|
connectionDi = getDi(elementRegistry.get(connection.id));
|
||||||
|
|
||||||
|
// assume
|
||||||
|
expect(connectionDi).to.exist;
|
||||||
|
|
||||||
// when
|
// when
|
||||||
commandStack.undo();
|
commandStack.undo();
|
||||||
|
|
||||||
@ -272,6 +280,9 @@ describe('features/modeling - append shape', function() {
|
|||||||
}),
|
}),
|
||||||
connectionDi = getDi(elementRegistry.get(connection.id));
|
connectionDi = getDi(elementRegistry.get(connection.id));
|
||||||
|
|
||||||
|
// assume
|
||||||
|
expect(connectionDi).to.exist;
|
||||||
|
|
||||||
// when
|
// when
|
||||||
commandStack.undo();
|
commandStack.undo();
|
||||||
commandStack.redo();
|
commandStack.redo();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user