Skip to content

Commit

Permalink
Revert test parsing to maintain order of assertions are defined in te…
Browse files Browse the repository at this point in the history
…sts.csv
  • Loading branch information
howard-e committed Feb 28, 2024
1 parent 117293a commit 096cc14
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/data/parse-test-csv-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ function parseTestCSVRowV2({ tests, assertions, scripts, commands }) {
})
: undefined;

// If tests.csv defines assertion with priority of 0, and *-commands.csv overrides it, it must be presented at the
// end of the assertions list, so pre-sort to push 0-priority assertions to end of array
if (assertionsValue) assertionsValue.sort(a => (a.priority === 0 ? 1 : -1));

// Create references values
let referencesValue = assertionsValue
? assertionsValue.flatMap(assertion => assertion.refIds.trim().split(' '))
Expand Down

0 comments on commit 096cc14

Please sign in to comment.