Skip to content

Commit

Permalink
fix formatting of json payload
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitorched authored and bofalke committed Mar 26, 2024
1 parent d1316a2 commit 42ed33a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class <%= feature %>Steps {
@given('<%= givenEvent.name %>')
public async given<%= givenEvent.className %>(): Promise<void> {
const payload = {
<%= givenPayload %>
<%- givenPayload %>
};

const event = <%= givenEvent.propertyName %>(payload);
Expand All @@ -50,7 +50,7 @@ class <%= feature %>Steps {
@when('<%= whenEvent.name %>')
public async when<%= whenEvent.className %>(): Promise<void> {
const payload = {
<%= whenPayload %>
<%- whenPayload %>
};

const command = <%= whenEvent.propertyName %>(payload);
Expand All @@ -62,7 +62,7 @@ class <%= feature %>Steps {
public async then<%= thenEvent.className %>(): Promise<void> {
const identifier = '<%= expectedIdentifier %>';
const expectedPayload = {
<%= thenPayload %>
<%- thenPayload %>
};
const expectedEvent = <%= thenEvent.propertyName %>(expectedPayload);

Expand Down

0 comments on commit 42ed33a

Please sign in to comment.