Skip to content

Commit 38e2c10

Browse files
committed
tests: assert step position
1 parent b8f344b commit 38e2c10

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/project/test/util/version-workflow.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ test('unique hash but different steps order', (t) => {
3737
);
3838

3939
// different order of nodes (b & c changed position) but should generate the same hash
40+
// validate second step is actually different
41+
t.is(workflow1.steps[1].name, 'b')
42+
t.is(workflow2.steps[1].name, 'c')
43+
// assert that hashes are the same
4044
t.is(generateHash(workflow1), generateHash(workflow2))
4145
});
4246

0 commit comments

Comments
 (0)