From 19f62c9a984974caa744ae9c77abc8c91f01eba5 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 7 Aug 2019 21:56:48 -0400 Subject: [PATCH] Statically fix all tests --- graphql_parser/test/value_test.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graphql_parser/test/value_test.dart b/graphql_parser/test/value_test.dart index 61e90f48..0d0a42f0 100644 --- a/graphql_parser/test/value_test.dart +++ b/graphql_parser/test/value_test.dart @@ -72,7 +72,7 @@ main() { }); } -ValueContext parseValue(String text) => parse(text).parseValue(); +InputValueContext parseValue(String text) => parse(text).parseInputValue(); Matcher isValue(value) => new _IsValue(value); @@ -87,7 +87,7 @@ class _IsValue extends Matcher { @override bool matches(item, Map matchState) { - var v = item is ValueContext ? item : parseValue(item.toString()); - return equals(value).matches(v.value, matchState); + var v = item is InputValueContext ? item : parseValue(item.toString()); + return equals(value).matches(v.computeValue({}), matchState); } }