From 9107847fc31f6e2695549e8a0f02fd8def66fc5e Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 7 Sep 2022 11:55:03 +0100 Subject: [PATCH] Adding ellipsis test case. --- packages/string-templates/test/helpers.spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/string-templates/test/helpers.spec.js b/packages/string-templates/test/helpers.spec.js index 17e6876bba..1969410993 100644 --- a/packages/string-templates/test/helpers.spec.js +++ b/packages/string-templates/test/helpers.spec.js @@ -272,6 +272,14 @@ describe("test the string helpers", () => { ) expect(output).toBe("Hi!") }) + + it("should allow use of the ellipsis helper", async () => { + const output = await processString( + "{{ ellipsis \"adfasdfasdfasf\" 7 }}", + {}, + ) + expect(output).toBe("adfasdf…") + }) }) describe("test the comparison helpers", () => {