From 4bc8ad54848462eba589e19967801a1e92fe4a6d Mon Sep 17 00:00:00 2001 From: Tom Rees-Herdman Date: Mon, 10 Jul 2023 23:17:45 +0100 Subject: [PATCH] Rename variable. --- tests/js/gathering-data-utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/js/gathering-data-utils.js b/tests/js/gathering-data-utils.js index 1802b616e96..082e9669f8b 100644 --- a/tests/js/gathering-data-utils.js +++ b/tests/js/gathering-data-utils.js @@ -110,7 +110,7 @@ function provideSearchConsoleGatheringDataState( registry, isGatheringData ) { } ); } -const moduleProviderMap = { +const moduleDataProviderMap = { 'analytics-4': provideAnalytics4GatheringDataState, 'search-console': provideSearchConsoleGatheringDataState, }; @@ -136,7 +136,7 @@ export function provideGatheringDataState( registry, moduleStates ) { 'Setting an undefined gathering data state is currently unsupported.' ); - const provideGatheringData = moduleProviderMap[ moduleSlug ]; + const provideGatheringData = moduleDataProviderMap[ moduleSlug ]; if ( ! provideGatheringData ) { throw new Error( `Unhandled module: ${ moduleSlug }` );