Skip to content

Commit

Permalink
fix: handle case where first unit test has options passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Jul 23, 2023
1 parent 146f690 commit b94a0da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function main( context ) {
( forCLI && startsWith( elem.expression.arguments[ 0 ].value, 'command-line interface' ) )
) {
hasMainExportTest = true;
expr = elem.expression.arguments[ 1 ];
expr = elem.expression.arguments[ elem.expression.arguments.length-1 ]; // eslint-disable-line max-len
body = expr.body;
if ( !body.body || body.body.length === 0 ) {
break;
Expand Down

0 comments on commit b94a0da

Please sign in to comment.