From e2b7ac68ef2f0cea11c6d15d602bded9d5946b61 Mon Sep 17 00:00:00 2001 From: Paul Hager <28906717+pH-T@users.noreply.github.com> Date: Mon, 28 Mar 2022 14:46:41 +0200 Subject: [PATCH 1/2] fix: GetAllCasings.mjs - newline bug --- src/core/operations/GetAllCasings.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/operations/GetAllCasings.mjs b/src/core/operations/GetAllCasings.mjs index 33892ffc..b3f3e94e 100644 --- a/src/core/operations/GetAllCasings.mjs +++ b/src/core/operations/GetAllCasings.mjs @@ -46,7 +46,7 @@ class GetAllCasings extends Operation { } result += temp.join("") + "\n"; } - return result; + return result.slice(0, -1); } } From 9ad4e2525e2586859ebcc10781259c82584df1cc Mon Sep 17 00:00:00 2001 From: Paul Hager <28906717+pH-T@users.noreply.github.com> Date: Mon, 28 Mar 2022 16:52:59 +0200 Subject: [PATCH 2/2] fix: GetAllCasings.mjs test --- tests/operations/tests/GetAllCasings.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/operations/tests/GetAllCasings.mjs b/tests/operations/tests/GetAllCasings.mjs index e5c6a25b..15cb471a 100644 --- a/tests/operations/tests/GetAllCasings.mjs +++ b/tests/operations/tests/GetAllCasings.mjs @@ -11,7 +11,7 @@ TestRegister.addTests([ { name: "All casings of test", input: "test", - expectedOutput: "test\nTest\ntEst\nTEst\nteSt\nTeSt\ntESt\nTESt\ntesT\nTesT\ntEsT\nTEsT\nteST\nTeST\ntEST\nTEST\n", + expectedOutput: "test\nTest\ntEst\nTEst\nteSt\nTeSt\ntESt\nTESt\ntesT\nTesT\ntEsT\nTEsT\nteST\nTeST\ntEST\nTEST", recipeConfig: [ { "op": "Get All Casings", @@ -22,7 +22,7 @@ TestRegister.addTests([ { name: "All casings of t", input: "t", - expectedOutput: "t\nT\n", + expectedOutput: "t\nT", recipeConfig: [ { "op": "Get All Casings", @@ -33,7 +33,7 @@ TestRegister.addTests([ { name: "All casings of null", input: "", - expectedOutput: "\n", + expectedOutput: "", recipeConfig: [ { "op": "Get All Casings",