Skip to content

Commit

Permalink
Change set default priority function name
Browse files Browse the repository at this point in the history
  • Loading branch information
evmiguel committed Apr 24, 2024
1 parent 0430504 commit 1373d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/data/parse-test-csv-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

'use strict';

const { setDefaultAssertionExceptionsFromTest } = require('../util/assertion-exception');
const { setDefaultAssertionPriority } = require('../util/assertion-exception');

/**
* @param {AriaATCSV.Test} testRow
Expand Down Expand Up @@ -218,7 +218,7 @@ function parseTestCSVRowV2({ tests, assertions, scripts, commands }) {
at => at.key === key && at.settings === (command.settings || 'defaultMode')
)
) {
const assertionExceptions = setDefaultAssertionExceptionsFromTest(
const assertionExceptions = setDefaultAssertionPriority(
command.assertionExceptions,
assertions
);
Expand Down
4 changes: 2 additions & 2 deletions lib/util/assertion-exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function setDefaultAssertionException(assertionException, defaultPriority) {
* @param {Array} assertions
* @returns {String}
*/
function setDefaultAssertionExceptionsFromTest(assertionExceptions, assertions) {
function setDefaultAssertionPriority(assertionExceptions, assertions) {
return assertionExceptions
.split(' ')
.map(assertionException => {
Expand All @@ -35,4 +35,4 @@ function setDefaultAssertionExceptionsFromTest(assertionExceptions, assertions)
.join(' ');
}

exports.setDefaultAssertionExceptionsFromTest = setDefaultAssertionExceptionsFromTest;
exports.setDefaultAssertionPriority = setDefaultAssertionPriority;

0 comments on commit 1373d76

Please sign in to comment.