platform/graphql_parser/test/common.dart

9 lines
284 B
Dart
Raw Normal View History

2017-07-03 15:37:35 +00:00
import 'package:graphql_parser/graphql_parser.dart';
import 'package:matcher/matcher.dart';
2017-07-03 15:53:19 +00:00
import 'package:test/test.dart';
2017-07-03 15:37:35 +00:00
Parser parse(String text) => new Parser(scan(text));
2018-08-02 13:25:41 +00:00
final Matcher throwsSyntaxError =
throwsA(predicate((x) => x is SyntaxError, 'is a syntax error'));