Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszkuc committed Oct 20, 2023
1 parent 142d00f commit 8792a36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions apollo-federation/tests/composition_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mod tests {
union U = S | T
"#,
)
.unwrap();
.unwrap();
let s2 = Subgraph::parse_and_expand(
"Subgraph2",
"https://subgraph2",
Expand All @@ -51,7 +51,7 @@ mod tests {
}
"#,
)
.unwrap();
.unwrap();

let supergraph = Supergraph::compose(vec![&s1, &s2]).unwrap();
insta::assert_snapshot!(print_sdl(&supergraph.schema));
Expand Down Expand Up @@ -85,7 +85,7 @@ mod tests {
}
"#,
)
.unwrap();
.unwrap();

let s2 = Subgraph::parse_and_expand(
"Subgraph2",
Expand All @@ -103,7 +103,7 @@ mod tests {
}
"#,
)
.unwrap();
.unwrap();

let supergraph = Supergraph::compose(vec![&s1, &s2]).unwrap();
insta::assert_snapshot!(print_sdl(&supergraph.schema));
Expand All @@ -126,7 +126,7 @@ mod tests {
}
"#,
)
.unwrap();
.unwrap();

let s2 = Subgraph::parse_and_expand(
"SubgraphB",
Expand All @@ -138,7 +138,7 @@ mod tests {
}
"#,
)
.unwrap();
.unwrap();
let supergraph = Supergraph::compose(vec![&s1, &s2]).unwrap();
insta::assert_snapshot!(print_sdl(&supergraph.schema));
insta::assert_snapshot!(print_sdl(&supergraph.to_api_schema()));
Expand Down Expand Up @@ -182,4 +182,4 @@ mod tests {
insta::assert_snapshot!(print_sdl(&supergraph.schema));
insta::assert_snapshot!(print_sdl(&supergraph.to_api_schema()));
}
}
}
2 changes: 1 addition & 1 deletion apollo-federation/tests/subgraph/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mod parse_expand_tests;
mod parse_expand_tests;
2 changes: 1 addition & 1 deletion apollo-federation/tests/subgraph/parse_expand_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ fn can_parse_and_expand_will_fail_when_importing_same_spec_twice() {
let result = Subgraph::parse_and_expand("S1", "http://s1", schema)
.expect_err("importing same specification twice should fail");
assert_eq!("invalid graphql schema - multiple @link imports for the federation specification are not supported", result.msg);
}
}

0 comments on commit 8792a36

Please sign in to comment.