INNER CODE UNIT · Rust
test_schema_field
obmarg/cynic · cynic-parser/src/lib.rs:160
fn test_schema_field() {
// Use a keyword as a field name and make sure it's fine
insta::assert_snapshot!(
parse_type_system_document( "type MyType { query: String }").unwrap().to_sdl_pretty(),
@r###"
type MyType {
query: String
}
"###
)
}
#[test]
fn test_input() {
insta::assert_snapshot!(
parse_type_system_document(
r#"
"I am a description"