From f92d7807641403ea8e41f585a61920b5022712b7 Mon Sep 17 00:00:00 2001 From: Thomas <31802793+ThomasNotTom@users.noreply.github.com> Date: Sun, 8 Jun 2025 00:59:17 +0100 Subject: [PATCH] Create test for breaking line and removing of whitespace --- tests/operations/tests/LineBreak.mjs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/operations/tests/LineBreak.mjs b/tests/operations/tests/LineBreak.mjs index df4e75e7..8e56a5d6 100644 --- a/tests/operations/tests/LineBreak.mjs +++ b/tests/operations/tests/LineBreak.mjs @@ -28,5 +28,16 @@ TestRegister.addTests([ "args": [6, false] } ] + }, { + // Check line breaks and leading whitespace is removed. + name: "Line Break: With break and no leading whitespace", + input: "Hello, world!", + expectedOutput: "Hello,\nworld!", + recipeConfig: [ + { + "op": "Line Break", + "args": [6, true] + } + ] } ]);