From 096cc149a0fe3a9275990b0cbc42693df34daac3 Mon Sep 17 00:00:00 2001 From: Howard Edwards Date: Wed, 28 Feb 2024 10:18:29 -0500 Subject: [PATCH] Revert test parsing to maintain order of assertions are defined in tests.csv --- lib/data/parse-test-csv-row.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/data/parse-test-csv-row.js b/lib/data/parse-test-csv-row.js index 065032a1b..4fdd791ce 100644 --- a/lib/data/parse-test-csv-row.js +++ b/lib/data/parse-test-csv-row.js @@ -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(' '))