From c8403064f3ebd0ee70732893d8a66b6a2d115327 Mon Sep 17 00:00:00 2001 From: Christoph Diehl <1614333+posidron@users.noreply.github.com> Date: Sat, 3 Feb 2018 10:16:08 +0100 Subject: [PATCH] Add mackup() to beautify template strings --- lib/utils/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/common.js b/lib/utils/common.js index 57be6be..77c1649 100644 --- a/lib/utils/common.js +++ b/lib/utils/common.js @@ -89,5 +89,6 @@ utils.common = { } } return obj1 - } + }, + mockup: (obj) => obj.split('\n').map((ln) => ln.trim()).join('') }