Skip to content

Commit cdb5c74

Browse files
committed
test: fix tests
1 parent 65b6eef commit cdb5c74

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/spec/provider/bpmn/AdHocCompletionProps.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ describe('provider/bpmn - AdHocCompletion', function() {
204204

205205
describe('#cancelRemainingInstances', function() {
206206

207-
it('should be checked when not explicitely configured on the process', inject(async function(elementRegistry, selection) {
207+
it('should not be checked when not explicitely configured on the process', inject(async function(elementRegistry, selection) {
208208

209209
// given
210210
const subprocess = elementRegistry.get('Subprocess_2');
211-
expect(getCancelRemainingInstancesValue(subprocess)).to.be.true;
211+
expect(getCancelRemainingInstancesValue(subprocess)).not.to.exist;
212212

213213
// when
214214
await act(() => {
@@ -218,7 +218,7 @@ describe('provider/bpmn - AdHocCompletion', function() {
218218
// then
219219
const cancelRemainingInstancesCheckbox = getCancelRemainingInstancesCheckbox(container);
220220
expect(cancelRemainingInstancesCheckbox).to.exist;
221-
expect(cancelRemainingInstancesCheckbox.checked).be.true;
221+
expect(cancelRemainingInstancesCheckbox.checked).to.be.false;
222222
}));
223223

224224

test/spec/provider/zeebe/AdHocCompletionProps.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,13 @@ describe('provider/zeebe - AdHocCompletion', function() {
264264

265265
describe('#cancelRemainingInstances', function() {
266266

267-
it('should be checked when not explicitely configured on the process', inject(async function(
267+
it('should not be checked when not explicitely configured on the process', inject(async function(
268268
elementRegistry, selection
269269
) {
270270

271271
// given
272272
const subprocess = elementRegistry.get('Subprocess_2');
273-
expect(getCancelRemainingInstancesValue(subprocess)).to.be.true;
273+
expect(getCancelRemainingInstancesValue(subprocess)).not.to.exist;
274274

275275
// when
276276
await act(() => {
@@ -280,7 +280,7 @@ describe('provider/zeebe - AdHocCompletion', function() {
280280
// then
281281
const cancelRemainingInstancesCheckbox = getCancelRemainingInstancesCheckbox(container);
282282
expect(cancelRemainingInstancesCheckbox).to.exist;
283-
expect(cancelRemainingInstancesCheckbox.checked).be.true;
283+
expect(cancelRemainingInstancesCheckbox.checked).to.be.false;
284284
}));
285285

286286

0 commit comments

Comments
 (0)