Skip to content

Commit 6b58867

Browse files
committed
cli: another test fix
1 parent 4ba2e82 commit 6b58867

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

integration-tests/cli/test/execute-workflow.test.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ test.serial(
6464

6565
const out = getJSON();
6666
t.is(out.data.items.length, 4);
67-
t.true(out.data.items.includes('z'));
68-
t.true(out.data.items.includes('a'));
69-
t.true(out.data.items.includes('b'));
70-
t.true(out.data.items.includes('c'));
67+
t.deepEqual(out.data.items, ['z', 'a', 'b', 'c']);
7168
}
7269
);
7370

integration-tests/cli/test/fixtures/wf-array.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"id": "a",
66
"adaptor": "common",
7-
"expression": "fn((state) => { if (!state.data.items) { state.data.items = []; state.data.items.push('a'); } return state; });",
7+
"expression": "fn((state) => { if (!state.data.items) { state.data.items = []; } state.data.items.push('a'); return state; });",
88
"next": { "b": true }
99
},
1010
{

0 commit comments

Comments
 (0)