File tree 1 file changed +28
-12
lines changed
1 file changed +28
-12
lines changed Original file line number Diff line number Diff line change @@ -331,10 +331,14 @@ fn verify_project_dir_containing_cargo_toml() {
331
331
. with_status ( 1 )
332
332
. with_stdout_data (
333
333
str![ [ r#"
334
- {"invalid":"the manifest-path must be a path to a Cargo.toml file"}
335
-
334
+ [
335
+ {
336
+ "invalid": "the manifest-path must be a path to a Cargo.toml file"
337
+ }
338
+ ]
336
339
"# ] ]
337
- . is_jsonlines ( ) ,
340
+ . is_json ( )
341
+ . against_jsonlines ( ) ,
338
342
)
339
343
. run ( ) ;
340
344
}
@@ -351,10 +355,14 @@ fn verify_project_dir_plus_file() {
351
355
. with_status ( 1 )
352
356
. with_stdout_data (
353
357
str![ [ r#"
354
- {"invalid":"the manifest-path must be a path to a Cargo.toml file"}
355
-
358
+ [
359
+ {
360
+ "invalid": "the manifest-path must be a path to a Cargo.toml file"
361
+ }
362
+ ]
356
363
"# ] ]
357
- . is_jsonlines ( ) ,
364
+ . is_json ( )
365
+ . against_jsonlines ( ) ,
358
366
)
359
367
. run ( ) ;
360
368
}
@@ -371,10 +379,14 @@ fn verify_project_dir_plus_path() {
371
379
. with_status ( 1 )
372
380
. with_stdout_data (
373
381
str![ [ r#"
374
- {"invalid":"the manifest-path must be a path to a Cargo.toml file"}
375
-
382
+ [
383
+ {
384
+ "invalid": "the manifest-path must be a path to a Cargo.toml file"
385
+ }
386
+ ]
376
387
"# ] ]
377
- . is_jsonlines ( ) ,
388
+ . is_json ( )
389
+ . against_jsonlines ( ) ,
378
390
)
379
391
. run ( ) ;
380
392
}
@@ -387,10 +399,14 @@ fn verify_project_dir_to_nonexistent_cargo_toml() {
387
399
. with_status ( 1 )
388
400
. with_stdout_data (
389
401
str![ [ r#"
390
- {"invalid":"manifest path `foo/bar/baz/Cargo.toml` does not exist"}
391
-
402
+ [
403
+ {
404
+ "invalid": "manifest path `foo/bar/baz/Cargo.toml` does not exist"
405
+ }
406
+ ]
392
407
"# ] ]
393
- . is_jsonlines ( ) ,
408
+ . is_json ( )
409
+ . against_jsonlines ( ) ,
394
410
)
395
411
. run ( ) ;
396
412
}
You can’t perform that action at this time.
0 commit comments