INNER CODE UNIT · Rust
test_basic_union
obmarg/cynic · cynic-parser/src/lib.rs:114
fn test_basic_union() {
insta::assert_snapshot!(
parse_type_system_document(r#"
union MyType = Blah | Bloo
"#
).unwrap().to_sdl_pretty(),
@r###"
union MyType = Blah | Bloo
"###
);
}
#[test]
fn test_basic_scalar() {
insta::assert_snapshot!(
parse_type_system_document(r#"
scalar MyType @hello(there: [{thing: "other"}])