Skip to content

Commit cce251f

Browse files
committed
test: do not pass async to forEach
1 parent da2f283 commit cce251f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

test/spec/provider/bpmn/SignalProps.spec.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('provider/bpmn - SignalProps', function() {
6767
elementRegistry.get('IntermediateThrowEvent_1')
6868
];
6969

70-
plainElements.forEach(async (ele) => {
70+
for (const ele of plainElements) {
7171

7272
// when
7373
await act(() => {
@@ -77,7 +77,7 @@ describe('provider/bpmn - SignalProps', function() {
7777
// then
7878
const signalRefSelect = domQuery('select[name=signalRef]', container);
7979
expect(signalRefSelect).to.be.null;
80-
});
80+
}
8181

8282
})
8383
);
@@ -94,7 +94,7 @@ describe('provider/bpmn - SignalProps', function() {
9494
elementRegistry.get('SignalCatchEvent_1')
9595
];
9696

97-
signalElements.forEach(async (ele) => {
97+
for (const ele of signalElements) {
9898

9999
// when
100100
await act(() => {
@@ -104,7 +104,7 @@ describe('provider/bpmn - SignalProps', function() {
104104
// then
105105
const signalRefSelect = domQuery('select[name=signalRef]', container);
106106
expect(signalRefSelect.value).to.eql(getSignal(ele).get('id'));
107-
});
107+
}
108108
}));
109109

110110

@@ -290,7 +290,7 @@ describe('provider/bpmn - SignalProps', function() {
290290
elementRegistry.get('IntermediateThrowEvent_1')
291291
];
292292

293-
plainElements.forEach(async (ele) => {
293+
for (const ele of plainElements) {
294294

295295
// when
296296
await act(() => {
@@ -301,7 +301,7 @@ describe('provider/bpmn - SignalProps', function() {
301301
const signalNameInput = domQuery('input[name=signalName]', container);
302302

303303
expect(signalNameInput).to.be.null;
304-
});
304+
}
305305
})
306306
);
307307

@@ -317,7 +317,7 @@ describe('provider/bpmn - SignalProps', function() {
317317
elementRegistry.get('SignalCatchEvent_1')
318318
];
319319

320-
signalElements.forEach(async (ele) => {
320+
for (const ele of signalElements) {
321321
await act(() => {
322322
selection.select(ele);
323323
});
@@ -327,7 +327,7 @@ describe('provider/bpmn - SignalProps', function() {
327327

328328
// then
329329
expect(signalNameInput.value).to.eql(getSignal(ele).get('name'));
330-
});
330+
}
331331
}));
332332

333333

test/spec/provider/zeebe/ConditionProps.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('provider/zeebe - ConditionProps', function() {
6363
// given
6464
const elements = [ 'Flow2', 'Flow3', 'Flow4' ];
6565

66-
elements.forEach(async ele => {
66+
for (const ele of elements) {
6767
const sequenceFlow = elementRegistry.get(ele);
6868

6969
// when
@@ -75,7 +75,7 @@ describe('provider/zeebe - ConditionProps', function() {
7575

7676
// then
7777
expect(conditionExpressionInput).to.exist;
78-
});
78+
}
7979
}));
8080

8181

0 commit comments

Comments
 (0)