Skip to content

Commit

Permalink
Add @deprecated inclusion check to FederationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
sachindshinde committed Mar 17, 2020
1 parent e7afe7e commit 287870a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void testEmpty() {
final String schemaString = new SchemaPrinter(SchemaPrinter.Options.defaultOptions()
.includeDirectives(directive -> !ignoredDirectives.contains(directive.getName()))
).print(federated);
Assertions.assertEquals("type Query {\n" +
Assertions.assertEquals("type Query @deprecated(reason : \"dummy\") {\n" +
" _service: _Service\n" +
"}\n" +
"\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ schema {
query: Query
}

type Query {
type Query @deprecated(reason : "dummy") {
}

0 comments on commit 287870a

Please sign in to comment.