diff --git a/packages/theme-check-common/src/disabled-checks/index.spec.ts b/packages/theme-check-common/src/disabled-checks/index.spec.ts index b8d4a2f55..fc8c5c0cc 100644 --- a/packages/theme-check-common/src/disabled-checks/index.spec.ts +++ b/packages/theme-check-common/src/disabled-checks/index.spec.ts @@ -5,8 +5,8 @@ import { LiquidFilter, RenderMarkup } from './test-checks'; import { UndefinedObject } from '../checks/undefined-object'; const commentTypes = [ - (text: string) => `{% # ${text} %}`, - (text: string) => `{% comment %}${text}{% endcomment %}`, + (text: string) => `{% # ${text.replace(/\s+/g, ' ').trim()} %}`, + (text: string) => `{% comment %}${text.replace(/\s+/g, ' ').trim()} {% endcomment %}`, ]; function expectLiquidFilterOffense(offenses: Offense[], file: string, assetName: string) {