platform/test/common.dart

8 lines
258 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));
2017-07-03 15:53:19 +00:00
final Matcher throwsSyntaxError = throwsA(const isInstanceOf<SyntaxError>());