platform/graphql_parser/test/common.dart
2018-08-02 09:25:41 -04:00

8 lines
284 B
Dart

import 'package:graphql_parser/graphql_parser.dart';
import 'package:matcher/matcher.dart';
import 'package:test/test.dart';
Parser parse(String text) => new Parser(scan(text));
final Matcher throwsSyntaxError =
throwsA(predicate((x) => x is SyntaxError, 'is a syntax error'));