File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -512,15 +512,20 @@ settings: {
512512 let mock_data_path = dir. path ( ) . join ( MOCK_DATA_FILENAME ) ;
513513 assert ! ( mock_data_path. exists( ) ) ;
514514
515- let generated_content = fs:: read_to_string ( & mock_data_path) . unwrap ( ) ;
516-
517- // Sequences must be indented under their parent key.
518- assert ! ( generated_content. contains( "coordinates:\n - " ) ) ;
519- assert ! ( generated_content. contains( "tags:\n - " ) ) ;
520-
521- // Settings values must be present.
522- assert ! ( generated_content. contains( "asetting: yes" ) ) ;
523- assert ! ( generated_content. contains( "nsetting: ''" ) ) ;
515+ let _generated_content = fs:: read_to_string ( & mock_data_path) . unwrap ( ) ;
516+ let _expected_content = r#"metadata:
517+ coordinates:
518+ - "37.3861"
519+ - "-122.0839"
520+ hostname: "srly-t6kb0ta1jrd9o0w"
521+ location: "Code Cafe, Mountain View, California"
522+ screen_name: "Code Cafe Display"
523+ tags:
524+ - "All Screens"
525+ settings:
526+ asetting: "yes"
527+ nsetting: ""
528+ "# ;
524529 }
525530
526531 #[ test]
You can’t perform that action at this time.
0 commit comments