Skip to content

Commit 06df370

Browse files
authored
Apply suggestions from code review
Co-authored-by: Pascal Birchler <pascal.birchler@gmail.com>
1 parent 631fc5f commit 06df370

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

features/widget.feature

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ Feature: Manage widgets in WordPress sidebar
134134
And the return code should be 0
135135

136136
# Read value to update from STDIN (edge case: "0")
137-
When I run `wp widget patch update archives-1 title` with:
138-
"""
139-
0
140-
"""
137+
When I run `echo '0' | wp widget patch update archives-1 title`
141138
Then STDOUT should be:
142139
"""
143140
Success: Widget updated.
@@ -146,10 +143,7 @@ Feature: Manage widgets in WordPress sidebar
146143
And the return code should be 0
147144

148145
# Read JSON value from STDIN with --format=json (edge case: null)
149-
When I run `wp widget patch update archives-1 title --format=json` with:
150-
"""
151-
null
152-
"""
146+
When I run `echo 'null' | wp widget patch update archives-1 title --format=json`
153147
Then STDOUT should be:
154148
"""
155149
Success: Widget updated.

0 commit comments

Comments
 (0)