Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 17, 2023
1 parent 5464464 commit 538e605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/performance/compare-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* External dependencies.
*/
const { readFileSync, readDirSync } = require( 'node:fs' );
const { readFileSync, readdirSync } = require( 'node:fs' );
const { join, basename } = require( 'node:path' );

/**
Expand All @@ -30,7 +30,7 @@ const parseFile = ( fileName ) =>
const testResults = {};
const prevResults = {};

for ( const { name } of readDirSync( process.env.WP_ARTIFACTS_PATH ) ) {
for ( const { name } of readdirSync( process.env.WP_ARTIFACTS_PATH ) ) {
if ( ! name.endsWith( '.results.json' ) ) {
continue;
}
Expand Down

0 comments on commit 538e605

Please sign in to comment.