diff --git a/test/graphql-docs/fixtures/named-root-schema.graphql b/test/graphql-docs/fixtures/named-root-schema.graphql deleted file mode 100644 index 485af36..0000000 --- a/test/graphql-docs/fixtures/named-root-schema.graphql +++ /dev/null @@ -1,10 +0,0 @@ -schema { - query: RootQuery -} - -type RootQuery { - """ - Do a thing - """ - thing: [String!]! -} diff --git a/test/graphql-docs/generator_test.rb b/test/graphql-docs/generator_test.rb index f42704a..f59ff36 100644 --- a/test/graphql-docs/generator_test.rb +++ b/test/graphql-docs/generator_test.rb @@ -26,10 +26,6 @@ def setup @tiny_parser = GraphQLDocs::Parser.new(tiny_schema, {}) @tiny_results = @tiny_parser.parse - named_root_schema = File.read(File.join(fixtures_dir, 'named-root-schema.graphql')) - @named_root_parser = GraphQLDocs::Parser.new(named_root_schema, {}) - @named_root_results = @named_root_parser.parse - @output_dir = File.join(fixtures_dir, 'output') end @@ -66,6 +62,7 @@ def test_that_it_works assert File.exist? File.join(@output_dir, 'enum', 'issuestate', 'index.html') assert File.exist? File.join(@output_dir, 'input_object', 'projectorder', 'index.html') assert File.exist? File.join(@output_dir, 'interface', 'reactable', 'index.html') + assert File.exist? File.join(@output_dir, 'query', 'codeofconduct', 'index.html') assert File.exist? File.join(@output_dir, 'mutation', 'addcomment', 'index.html') assert File.exist? File.join(@output_dir, 'object', 'repository', 'index.html') assert File.exist? File.join(@output_dir, 'scalar', 'boolean', 'index.html') @@ -136,18 +133,6 @@ def test_that_it_sets_classes assert_match(/
The code of conduct's key
\s+The code of conduct's key
}, contents) end def test_that_non_empty_html_lines_not_interpreted_by_markdown @@ -216,6 +201,7 @@ def test_that_non_empty_html_lines_not_interpreted_by_markdown contents = File.read File.join(@output_dir, 'input_object', 'projectorder', 'index.html') - assert_match %r{The direction in which to order projects by the specified field.
\s+The direction in which to order projects by the specified field.
\s+