From 73db8d519b10f9c0758e2c6e561118705a8408a2 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 7 Aug 2019 22:03:01 -0400 Subject: [PATCH] Fix arg test --- graphql_parser/test/argument_test.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graphql_parser/test/argument_test.dart b/graphql_parser/test/argument_test.dart index 69077681..e5f8b764 100644 --- a/graphql_parser/test/argument_test.dart +++ b/graphql_parser/test/argument_test.dart @@ -53,9 +53,10 @@ class _IsArgument extends Matcher { var arg = item is ArgumentContext ? item : parseArgument(item.toString()); if (arg == null) return false; print(arg.span.highlight()); + + var v = arg.value; return equals(name).matches(arg.name, matchState) && - ((arg is VariableContext && - equals(value).matches(arg.name, matchState)) || + ((v is VariableContext && equals(value).matches(v.name, matchState)) || equals(value).matches(arg.value.computeValue({}), matchState)); } }