Commit f8f73969 authored by Luke Duncalfe's avatar Luke Duncalfe

GraphQL generated docs: backtick names

https://gitlab.com/gitlab-org/gitlab/-/issues/323207
parent 24639ae0
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -28,7 +28,7 @@ module Gitlab
end
def render_name_and_description(object)
content = "### #{object[:name]}\n"
content = "### `#{object[:name]}`\n"
if object[:description].present?
content += "\n#{object[:description]}"
......
......@@ -40,7 +40,7 @@ RSpec.describe Gitlab::Graphql::Docs::Renderer do
specify do
expectation = <<~DOC
### ArrayTest
### `ArrayTest`
| Field | Type | Description |
| ----- | ---- | ----------- |
......@@ -53,7 +53,7 @@ RSpec.describe Gitlab::Graphql::Docs::Renderer do
context 'query generation' do
let(:expectation) do
<<~DOC
### foo
### `foo`
List of objects.
......@@ -91,7 +91,7 @@ RSpec.describe Gitlab::Graphql::Docs::Renderer do
specify do
expectation = <<~DOC
### OrderingTest
### `OrderingTest`
| Field | Type | Description |
| ----- | ---- | ----------- |
......@@ -114,7 +114,7 @@ RSpec.describe Gitlab::Graphql::Docs::Renderer do
specify do
expectation = <<~DOC
### DeprecatedTest
### `DeprecatedTest`
| Field | Type | Description |
| ----- | ---- | ----------- |
......@@ -143,7 +143,7 @@ RSpec.describe Gitlab::Graphql::Docs::Renderer do
specify do
expectation = <<~DOC
### MyEnum
### `MyEnum`
| Value | Description |
| ----- | ----------- |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment