From eca511cb37393a55e220d7220de1092c58c9030d Mon Sep 17 00:00:00 2001 From: Oliver Sand Date: Tue, 8 Jun 2021 09:57:35 +0200 Subject: [PATCH] Fix TaskWorker tests Signed-off-by: Oliver Sand --- .../src/scaffolder/tasks/TaskWorker.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/scaffolder-backend/src/scaffolder/tasks/TaskWorker.test.ts b/plugins/scaffolder-backend/src/scaffolder/tasks/TaskWorker.test.ts index 7136998aa5..c6ad1a8105 100644 --- a/plugins/scaffolder-backend/src/scaffolder/tasks/TaskWorker.test.ts +++ b/plugins/scaffolder-backend/src/scaffolder/tasks/TaskWorker.test.ts @@ -189,7 +189,7 @@ describe('TaskWorker', () => { id: 'conditional', name: 'conditional', action: 'test-action', - if: '"{{ steps.test.output.testOutput }}"', + if: '{{ steps.test.output.testOutput }}', }, ], output: { @@ -226,8 +226,7 @@ describe('TaskWorker', () => { }, ], output: { - result: - '{{#if steps.conditional}}{{ steps.conditional.output.testOutput }}{{/if}}', + result: '{{ steps.conditional.output.testOutput }}', }, values: {}, });