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 committed Oct 5, 2023
1 parent 718a517 commit 2a092b0
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 2a092b0

Please sign in to comment.