Skip to content

Commit bf6ad67

Browse files
authored
Merge pull request #368 from wp-cli/fix/behat-json-formatting
Fix JSON formatting in feature file
2 parents 0c6e80a + e1abb56 commit bf6ad67

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

features/post-meta.feature

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Feature: Manage post custom fields
225225
And an input.json file:
226226
"""
227227
{
228-
"foo": "bar"
228+
"foo": "bar"
229229
}
230230
"""
231231
And I run `wp post meta set 1 meta-key --format=json < input.json`
@@ -242,14 +242,14 @@ Feature: Manage post custom fields
242242
And an input.json file:
243243
"""
244244
{
245-
"foo": {
246-
"bar": {
247-
"baz": "some value"
248-
}
249-
},
250-
"foo.com": {
251-
"visitors": 999
252-
}
245+
"foo": {
246+
"bar": {
247+
"baz": "some value"
248+
}
249+
},
250+
"foo.com": {
251+
"visitors": 999
252+
}
253253
}
254254
"""
255255
And I run `wp post meta set 1 meta-key --format=json < input.json`
@@ -307,7 +307,7 @@ Feature: Manage post custom fields
307307
And an input.json file:
308308
"""
309309
{
310-
"foo": "bar"
310+
"foo": "bar"
311311
}
312312
"""
313313
And I run `wp post meta set 1 meta-key --format=json < input.json`
@@ -332,10 +332,10 @@ Feature: Manage post custom fields
332332
And an input.json file:
333333
"""
334334
{
335-
"foo": {
336-
"bar": "baz"
337-
},
338-
"bar": "bad"
335+
"foo": {
336+
"bar": "baz"
337+
},
338+
"bar": "bad"
339339
}
340340
"""
341341
And a patch file:
@@ -354,10 +354,10 @@ Feature: Manage post custom fields
354354
Then STDOUT should be JSON containing:
355355
"""
356356
{
357-
"foo": {
358-
"bar": "new value"
359-
},
360-
"bar": "bad"
357+
"foo": {
358+
"bar": "new value"
359+
},
360+
"bar": "bad"
361361
}
362362
"""
363363
@@ -367,10 +367,10 @@ Feature: Manage post custom fields
367367
And an input.json file:
368368
"""
369369
{
370-
"foo": {
371-
"bar": "baz"
372-
},
373-
"bar": "bad"
370+
"foo": {
371+
"bar": "baz"
372+
},
373+
"bar": "bad"
374374
}
375375
"""
376376
And I run `wp post meta set 1 meta-key --format=json < input.json`
@@ -389,10 +389,10 @@ Feature: Manage post custom fields
389389
And an input.json file:
390390
"""
391391
{
392-
"foo": {
393-
"bar": "baz",
394-
"abe": "lincoln"
395-
}
392+
"foo": {
393+
"bar": "baz",
394+
"abe": "lincoln"
395+
}
396396
}
397397
"""
398398
And I run `wp post meta set 1 meta-key --format=json < input.json`
@@ -407,9 +407,9 @@ Feature: Manage post custom fields
407407
Then STDOUT should be JSON containing:
408408
"""
409409
{
410-
"foo": {
411-
"abe": "lincoln"
412-
}
410+
"foo": {
411+
"abe": "lincoln"
412+
}
413413
}
414414
"""
415415
@@ -419,9 +419,9 @@ Feature: Manage post custom fields
419419
And an input.json file:
420420
"""
421421
{
422-
"foo": {
423-
"bar": "baz"
424-
}
422+
"foo": {
423+
"bar": "baz"
424+
}
425425
}
426426
"""
427427
And I run `wp post meta set 1 meta-key --format=json < input.json`
@@ -449,7 +449,7 @@ Feature: Manage post custom fields
449449
Then STDOUT should be JSON containing:
450450
"""
451451
{
452-
"foo": "bar"
452+
"foo": "bar"
453453
}
454454
"""
455455

0 commit comments

Comments
 (0)