INNER CODE UNIT · Rust

test_basic_scalar

obmarg/cynic · cynic-parser/src/lib.rs:128

    fn test_basic_scalar() {
        insta::assert_snapshot!(
            parse_type_system_document(r#"
                scalar MyType @hello(there: [{thing: "other"}])
                "#
            ).unwrap().to_sdl_pretty(),
            @r###"
        scalar MyType @hello(there: [{ thing: "other" }])
        "###
        );
    }

    #[test]
    fn test_basic_enum() {
        insta::assert_snapshot!(
            parse_type_system_document(r#"
                enum MyEnum {
                    BLAH,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…