From c95999b50b84d294476783573baf21d46318cb16 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 13 Oct 2024 12:32:54 +0200 Subject: [PATCH] Fix: tests --- src/Models/ThemeConfig/Conversion/PrepareLayer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Models/ThemeConfig/Conversion/PrepareLayer.ts b/src/Models/ThemeConfig/Conversion/PrepareLayer.ts index 569f02271..c179d7a18 100644 --- a/src/Models/ThemeConfig/Conversion/PrepareLayer.ts +++ b/src/Models/ThemeConfig/Conversion/PrepareLayer.ts @@ -860,12 +860,12 @@ export class RewriteSpecial extends DesugaringStep { * // should handle special case with a translated parameter * const spec = {"special": {"type":"image_upload", "label": {"en": "Add a picture to this object", "nl": "Voeg een afbeelding toe"}}} * const r = RewriteSpecial.convertIfNeeded(spec, ConversionContext.test()) - * r // => {"en": "{image_upload(,Add a picture to this object)}", "nl": "{image_upload(,Voeg een afbeelding toe)}" } + * r // => {"en": "{image_upload(,Add a picture to this object,)}", "nl": "{image_upload(,Voeg een afbeelding toe,)}" } * * // should handle special case with a prefix and postfix * const spec = {"special": {"type":"image_upload" }, before: {"en": "PREFIX "}, after: {"en": " POSTFIX", nl: " Achtervoegsel"} } * const r = RewriteSpecial.convertIfNeeded(spec, ConversionContext.test()) - * r // => {"en": "PREFIX {image_upload(,)} POSTFIX", "nl": "PREFIX {image_upload(,)} Achtervoegsel" } + * r // => {"en": "PREFIX {image_upload(,,)} POSTFIX", "nl": "PREFIX {image_upload(,,)} Achtervoegsel" } * * // should warn for unexpected keys * const context = ConversionContext.test()