-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Don't wrap long strings or drop quotes
An issue has presented, where if a string is over 80 characters, it will wrap over to the next line. This results in sometimes producing invalid variable injections. Be as true to the source as possible, so keep long lines and quotes
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
it: Preserves double quotes on a string | ||
given: | | ||
foo: "bar" | ||
expect: | | ||
foo: "bar" | ||
--- | ||
it: Preserves single quotes on a string | ||
given: | | ||
foo: 'bar' | ||
expect: | | ||
foo: 'bar' | ||
--- | ||
it: Preserves no quotes on a string | ||
given: | | ||
foo: bar | ||
expect: | | ||
foo: bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
it: Does not wrap long strings | ||
given: | | ||
foo: This is a really really really really really really long string that we don't want to wrap | ||
expect: | | ||
foo: This is a really really really really really really long string that we don't want to wrap |