INNER CODE UNIT · Rust
test_basic_object
obmarg/cynic · cynic-parser/src/lib.rs:78
fn test_basic_object() {
insta::assert_snapshot!(
parse_type_system_document(r#"
type MyType implements Blah & Bloo @hello {
field: Whatever @hello(name: ["string"]),
other: [[Int!]]!
}"#
).unwrap().to_sdl_pretty(),
@r###"
type MyType implements Blah & Bloo @hello {
field: Whatever @hello(name: ["string"])
other: [[Int!]]!
}
"###
);
}
#[test]