Skip to content

Commit

Permalink
Adjust propEq calls to switched parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma committed Aug 21, 2024
1 parent 67aa572 commit 8824d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { getTestCaseNames, getSuiteNames } = require('./names');
const { getAdditionalNames } = require('./settings');

const isDefined = complement(isNil);
const isCallExpression = both(isDefined, propEq('type', 'CallExpression'));
const isCallExpression = both(isDefined, propEq('CallExpression', 'type'));

const hooks = new Set([
'before',
Expand All @@ -19,7 +19,7 @@ const hooks = new Set([
]);
const suiteConfig = new Set(['timeout', 'slow', 'retries']);

const findReturnStatement = find(propEq('type', 'ReturnStatement'));
const findReturnStatement = find(propEq('ReturnStatement', 'type'));

function getPropertyName(property) {
return property.name || property.value;
Expand Down

0 comments on commit 8824d7c

Please sign in to comment.