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