From 2a092b0b577fcf52d188c53aba042dc030d932b1 Mon Sep 17 00:00:00 2001 From: Kai Hillenbrand Date: Thu, 5 Oct 2023 13:41:18 +0200 Subject: [PATCH] fix formatting of json payload --- .../features/step_definitions/__feature__Steps.ts__tmpl__ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cody/src/lib/hooks/behaviour-test-files/features/step_definitions/__feature__Steps.ts__tmpl__ b/packages/cody/src/lib/hooks/behaviour-test-files/features/step_definitions/__feature__Steps.ts__tmpl__ index 10034b2a..8fa9c7c9 100644 --- a/packages/cody/src/lib/hooks/behaviour-test-files/features/step_definitions/__feature__Steps.ts__tmpl__ +++ b/packages/cody/src/lib/hooks/behaviour-test-files/features/step_definitions/__feature__Steps.ts__tmpl__ @@ -26,7 +26,7 @@ class <%= feature %>Steps { @given('<%= givenEvent.name %>') public async given<%= givenEvent.className %>(): Promise { const payload = { - <%= givenPayload %> + <%- givenPayload %> }; const event = <%= givenEvent.propertyName %>(payload); @@ -50,7 +50,7 @@ class <%= feature %>Steps { @when('<%= whenEvent.name %>') public async when<%= whenEvent.className %>(): Promise { const payload = { - <%= whenPayload %> + <%- whenPayload %> }; const command = <%= whenEvent.propertyName %>(payload); @@ -62,7 +62,7 @@ class <%= feature %>Steps { public async then<%= thenEvent.className %>(): Promise { const identifier = '<%= expectedIdentifier %>'; const expectedPayload = { - <%= thenPayload %> + <%- thenPayload %> }; const expectedEvent = <%= thenEvent.propertyName %>(expectedPayload);