From 561e433c5daf363a93f1b7fcb73f60b3f20c896d Mon Sep 17 00:00:00 2001 From: Damian Zehnder Date: Tue, 20 Aug 2024 22:32:21 +0200 Subject: [PATCH] fix: handler type and test message --- src/structured-data/handler.js | 2 +- test/audits/structured-data.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structured-data/handler.js b/src/structured-data/handler.js index 0aed68ef..4b1de01b 100644 --- a/src/structured-data/handler.js +++ b/src/structured-data/handler.js @@ -99,7 +99,7 @@ export async function structuredDataHandler(baseURL, context, site) { const siteId = site.getId(); - const productDetailPages = await site.getConfig().getProductDetailPages('pdp-indexability'); + const productDetailPages = await site.getConfig().getProductDetailPages('structured-data'); if (isArray(productDetailPages) && productDetailPages.length === 0) { log.error(`No product detail pages found for site ID: ${siteId}`); throw new Error(`No product detail pages found for site: ${baseURL}`); diff --git a/test/audits/structured-data.test.js b/test/audits/structured-data.test.js index e4cd6589..e7d456c8 100644 --- a/test/audits/structured-data.test.js +++ b/test/audits/structured-data.test.js @@ -23,7 +23,7 @@ use(sinonChai); const sandbox = sinon.createSandbox(); const message = { - type: 'gsc-pdp-structured-data', + type: 'structured-data', url: 'https://www.example.com', };