platform/graphql_parser/test/common.dart
2018-08-02 08:48:53 -04:00

7 lines
258 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(const isInstanceOf<SyntaxError>());