Fix tests after removing internal fields from introspection
This commit is contained in:
parent
6aed455f03
commit
f336a9a97a
1 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ fn interface_introspection() {
|
|||
.get("fields").expect("fields field missing")
|
||||
.as_list_value().expect("fields field not an object value");
|
||||
|
||||
assert_eq!(fields.len(), 2);
|
||||
assert_eq!(fields.len(), 1);
|
||||
|
||||
assert!(fields.contains(&Value::object(vec![
|
||||
("name", Value::string("sampleEnum")),
|
||||
|
@ -316,7 +316,7 @@ fn object_introspection() {
|
|||
.get("fields").expect("fields field missing")
|
||||
.as_list_value().expect("fields field not an object value");
|
||||
|
||||
assert_eq!(fields.len(), 5); // The two fields, __typename, __type, __schema
|
||||
assert_eq!(fields.len(), 2);
|
||||
|
||||
println!("Fields: {:#?}", fields);
|
||||
|
||||
|
|
Loading…
Reference in a new issue