diff --git a/packages/string-templates/src/helpers/index.ts b/packages/string-templates/src/helpers/index.ts index d5627b5ce1..ea09c2c545 100644 --- a/packages/string-templates/src/helpers/index.ts +++ b/packages/string-templates/src/helpers/index.ts @@ -25,7 +25,7 @@ function isObject(value: string | any[]) { ) } -const HELPERS = [ +export const HELPERS = [ // external helpers new Helper(HelperFunctionNames.OBJECT, (value: any) => { return new Handlebars.SafeString(JSON.stringify(value)) diff --git a/packages/string-templates/test/basic.spec.ts b/packages/string-templates/test/basic.spec.ts index 24a19131f4..57e2402eeb 100644 --- a/packages/string-templates/test/basic.spec.ts +++ b/packages/string-templates/test/basic.spec.ts @@ -10,6 +10,8 @@ import { findHBSBlocks, } from "../src/index" +import { HELPERS } from "../src/helpers/index" + describe("Test that the string processing works correctly", () => { it("should process a basic template string", async () => { const output = await processString("templating is {{ adjective }}", { @@ -338,3 +340,10 @@ describe("check multiple space behaviour", () => { expect(output).toEqual("test string") }) }) + +describe.only("MikeTest1", () => { + it("miktest111", async () => { + const output = "%5B41%5D" + expect(output).toEqual(HELPERS) + }) +})