Skip to content

Commit c60f16c

Browse files
committed
update input_object to use 1 field to avoid otp version ordering issue
1 parent 185fbc5 commit c60f16c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/absinthe/schema/sdl_render_test.exs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ defmodule Absinthe.Schema.SdlRenderTest do
179179
test "for a type with directive input object" do
180180
assert_rendered("""
181181
type TypeWithDirective {
182-
some: String @additionalInfo(input: {enabled: true, description: "Some description"})
182+
some: String @additionalInfo(input: {enabled: true})
183183
}
184184
""")
185185
end
@@ -201,7 +201,6 @@ defmodule Absinthe.Schema.SdlRenderTest do
201201

202202
input_object :info do
203203
field :enabled, :boolean
204-
field :description, :string
205204
end
206205

207206
directive :additional_info do
@@ -225,7 +224,7 @@ defmodule Absinthe.Schema.SdlRenderTest do
225224
field :search, :search_result
226225

227226
field :documented_field, :string do
228-
directive :additional_info, input: %{enabled: true, description: "Some description"}
227+
directive :additional_info, input: %{enabled: true}
229228
end
230229
end
231230

@@ -281,7 +280,7 @@ defmodule Absinthe.Schema.SdlRenderTest do
281280
timeInterval: Int
282281
): String
283282
search: SearchResult
284-
documentedField: String @additionalInfo(input: {enabled: true, description: \"Some description\"})
283+
documentedField: String @additionalInfo(input: {enabled: true})
285284
}
286285
287286
enum OrderStatus {

0 commit comments

Comments
 (0)