Skip to content

Commit

Permalink
Fix tests after removing internal fields from introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
mhallin committed Jun 15, 2017
1 parent 6aed455 commit f336a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/executor_tests/introspection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit f336a9a

Please sign in to comment.