diff --git a/examples/nested-jsbeautifyrc/gherkin/expected/tables.feature b/examples/nested-jsbeautifyrc/gherkin/expected/tables.feature new file mode 100644 index 0000000..cbeb73c --- /dev/null +++ b/examples/nested-jsbeautifyrc/gherkin/expected/tables.feature @@ -0,0 +1,10 @@ +Feature: Description + + Scenario Outline: This one will have examples + Given the + Then the + + Examples: + | what | then | + | first value | first then | + | second what value | second then value | \ No newline at end of file diff --git a/examples/nested-jsbeautifyrc/gherkin/expected/test.feature b/examples/nested-jsbeautifyrc/gherkin/expected/test.feature new file mode 100644 index 0000000..57c0f8a --- /dev/null +++ b/examples/nested-jsbeautifyrc/gherkin/expected/test.feature @@ -0,0 +1,23 @@ +Feature: The description of the feature that + might need to be wrapped + onto multiple lines + + Scenario: The description of the scenario that + might need to be wrapped + onto multiple lines + Given I am in some state + When I take some action + # And I can add a comment + Then I should see some outcome + + # A comment gets moved above the tag + @tag1 + Scenario: This scenario has a tag + Then I should see some outcome + + @tag1 @tag2 + Scenario: This scenario has two tags + Then I should see some outcome + + Scenario: This scenario does not have any tags + Then I should see some outcome \ No newline at end of file diff --git a/examples/nested-jsbeautifyrc/gherkin/original/_tables.feature b/examples/nested-jsbeautifyrc/gherkin/original/_tables.feature new file mode 100644 index 0000000..038fc33 --- /dev/null +++ b/examples/nested-jsbeautifyrc/gherkin/original/_tables.feature @@ -0,0 +1,9 @@ +Feature: Description + +Scenario Outline: This one will have examples + Given the + Then the + Examples: + | what | then | + | first value | first then| + | second what|second then| \ No newline at end of file diff --git a/examples/nested-jsbeautifyrc/gherkin/original/test.feature b/examples/nested-jsbeautifyrc/gherkin/original/test.feature new file mode 100644 index 0000000..73dddfd --- /dev/null +++ b/examples/nested-jsbeautifyrc/gherkin/original/test.feature @@ -0,0 +1,23 @@ +Feature: The description of the feature that +might need to be wrapped +onto multiple lines + +Scenario: The description of the scenario that +might need to be wrapped +onto multiple lines +Given I am in some state +When I take some action +# And I can add a comment +Then I should see some outcome + +@tag1 +# A comment gets moved above the tag +Scenario: This scenario has a tag +Then I should see some outcome + +@tag1 @tag2 +Scenario: This scenario has two tags +Then I should see some outcome + +Scenario: This scenario does not have any tags +Then I should see some outcome \ No newline at end of file