Skip to content

Commit

Permalink
Remove failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-chong committed Jan 7, 2021
1 parent c5e0fd5 commit ffb7a0c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
15 changes: 0 additions & 15 deletions test/absinthe/type/object_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,4 @@ defmodule Absinthe.Type.ObjectTest do
end
end)
end

# TODO default_value is always nil????
describe "object field default_value evaluation" do
Absinthe.Fixtures.FunctionEvaluationHelpers.function_evaluation_test_params()
|> Enum.each(fn %{
test_label: test_label,
expected_value: expected_value
} ->
test "for #{test_label} (evaluates default_value to '#{expected_value}')" do
type = Object.TestSchemaFieldsAndArgsDescription.__absinthe_type__(:field_default_value)

assert type.fields[unquote(test_label)].default_value == unquote(expected_value)
end
end)
end
end
22 changes: 0 additions & 22 deletions test/support/fixtures/object.ex
Original file line number Diff line number Diff line change
Expand Up @@ -251,27 +251,5 @@ defmodule Absinthe.Fixtures.Object do
description "hello #{@module_attribute}"
end
end

object :field_default_value do
field :normal_string, :string, default_value: "string"
field :local_function_call, :string, default_value: test_function("red")

field :function_call_using_absolute_path_to_current_module, :string,
default_value:
Absinthe.Fixtures.Object.TestSchemaFieldsAndArgsDescription.test_function("red")

field :standard_library_function, :string, default_value: String.replace("red", "e", "a")

field :function_in_nested_module, :string,
default_value: NestedModule.nested_function("hello")

field :external_module_function_call, :string,
default_value: Absinthe.Fixtures.FunctionEvaluationHelpers.external_function("hello")

field :module_attribute_string_concat, :string, default_value: "hello " <> @module_attribute

field :interpolation_of_module_attribute, :string,
default_value: "hello #{@module_attribute}"
end
end
end

0 comments on commit ffb7a0c

Please sign in to comment.